Update config. Add lazygit to neovim. Add Broot support.
This commit is contained in:
parent
fd0b95ef9a
commit
8ad8a313ec
@ -4,7 +4,7 @@ LICENSE
|
|||||||
.msmtprc
|
.msmtprc
|
||||||
.mbsyncrc
|
.mbsyncrc
|
||||||
.irssi/*
|
.irssi/*
|
||||||
{{ if eq .chezmoi.os "darwin" }}
|
{{ if ne .chezmoi.os "openbsd" }}
|
||||||
.muttrc
|
.muttrc
|
||||||
.mutt/*
|
.mutt/*
|
||||||
.Xresources
|
.Xresources
|
||||||
@ -13,6 +13,7 @@ LICENSE
|
|||||||
.config/nvim/after
|
.config/nvim/after
|
||||||
.config/nvim/lua/plugins/editor.lua
|
.config/nvim/lua/plugins/editor.lua
|
||||||
.config/nvim/lua/plugins/lsp.lua
|
.config/nvim/lua/plugins/lsp.lua
|
||||||
|
.config/nvim/lua/plugins/git.lua
|
||||||
.config/nvim/lua/plugins/treesitter.lua
|
.config/nvim/lua/plugins/treesitter.lua
|
||||||
.config/nvim/lua/plugins/format.lua
|
.config/nvim/lua/plugins/format.lua
|
||||||
.config/nvim/lua/plugins/telescope.lua
|
.config/nvim/lua/plugins/telescope.lua
|
||||||
|
@ -201,7 +201,7 @@ tab_bar_style separator
|
|||||||
|
|
||||||
tab_separator " ┇"
|
tab_separator " ┇"
|
||||||
|
|
||||||
# shell .
|
shell /usr/local/bin/fish
|
||||||
|
|
||||||
#: The shell program to execute. The default value of . means to use
|
#: The shell program to execute. The default value of . means to use
|
||||||
#: whatever shell is set as the default shell for the current user.
|
#: whatever shell is set as the default shell for the current user.
|
||||||
@ -209,7 +209,7 @@ tab_separator " ┇"
|
|||||||
#: --login to ensure that the shell starts in interactive mode and
|
#: --login to ensure that the shell starts in interactive mode and
|
||||||
#: reads its startup rc files.
|
#: reads its startup rc files.
|
||||||
|
|
||||||
# editor .
|
editor nvim
|
||||||
|
|
||||||
#: The console editor to use when editing the kitty config file or
|
#: The console editor to use when editing the kitty config file or
|
||||||
#: similar tasks. A value of . means to use the environment variable
|
#: similar tasks. A value of . means to use the environment variable
|
||||||
|
@ -18,12 +18,19 @@ return {
|
|||||||
-- Define your formatters
|
-- Define your formatters
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
lua = { "stylua" },
|
lua = { "stylua" },
|
||||||
|
fish = { "fish_indent" },
|
||||||
perl = { "perltidy" },
|
perl = { "perltidy" },
|
||||||
python = { "isort", "black" },
|
python = { "isort", "black" },
|
||||||
javascript = { { "prettierd", "prettier" } },
|
javascript = { { "prettierd", "prettier" } },
|
||||||
|
sh = { "shfmt" },
|
||||||
},
|
},
|
||||||
-- Set up format-on-save
|
-- Set up format-on-save
|
||||||
format_on_save = { timeout_ms = 1000, lsp_fallback = true },
|
format_on_save = {
|
||||||
|
timeout_ms = 3000,
|
||||||
|
async = false,
|
||||||
|
quit = false,
|
||||||
|
lsp_fallback = true
|
||||||
|
},
|
||||||
-- Customize formatters
|
-- Customize formatters
|
||||||
formatters = {
|
formatters = {
|
||||||
shfmt = {
|
shfmt = {
|
||||||
|
19
dot_config/nvim/lua/plugins/git.lua
Normal file
19
dot_config/nvim/lua/plugins/git.lua
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
return {
|
||||||
|
"kdheepak/lazygit.nvim",
|
||||||
|
cmd = {
|
||||||
|
"LazyGit",
|
||||||
|
"LazyGitConfig",
|
||||||
|
"LazyGitCurrentFile",
|
||||||
|
"LazyGitFilter",
|
||||||
|
"LazyGitFilterCurrentFile",
|
||||||
|
},
|
||||||
|
-- optional for floating window border decoration
|
||||||
|
dependencies = {
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
},
|
||||||
|
-- setting the keybinding for LazyGit with 'keys' is recommended in
|
||||||
|
-- order to load the plugin when the command is run for the first time
|
||||||
|
keys = {
|
||||||
|
{ "<leader>gg", "<cmd>LazyGit<cr>", desc = "LazyGit" }
|
||||||
|
}
|
||||||
|
}
|
@ -29,6 +29,9 @@ return {
|
|||||||
inlay_hints = {
|
inlay_hints = {
|
||||||
enabled = false,
|
enabled = false,
|
||||||
},
|
},
|
||||||
|
document_highlight = {
|
||||||
|
enabled = true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
local lsp = require('lspconfig')
|
local lsp = require('lspconfig')
|
||||||
|
@ -70,6 +70,7 @@ set -g @catppuccin_window_current_color "#5E81AC"
|
|||||||
set -g @catppuccin_status_background "#434C5E"
|
set -g @catppuccin_status_background "#434C5E"
|
||||||
|
|
||||||
set -g @catppuccin_host_text "#{host_short}"
|
set -g @catppuccin_host_text "#{host_short}"
|
||||||
|
set -g @catppuccin_battery_text "#{battery_color_fg}#{battery_percentage}%%#[default]"
|
||||||
set -g @catppuccin_host_icon " "
|
set -g @catppuccin_host_icon " "
|
||||||
set -g @catppuccin_user_icon " "
|
set -g @catppuccin_user_icon " "
|
||||||
set -g @catppuccin_date_time_text "%H:%M"
|
set -g @catppuccin_date_time_text "%H:%M"
|
||||||
@ -78,13 +79,13 @@ set -g @catppuccin_battery_icon ""
|
|||||||
set -g @catppuccin_session_icon " "
|
set -g @catppuccin_session_icon " "
|
||||||
|
|
||||||
# List of plugins
|
# List of plugins
|
||||||
|
set -g @plugin 'catppuccin/tmux'
|
||||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||||
set -g @plugin 'tmux-plugins/tmux-battery'
|
set -g @plugin 'tmux-plugins/tmux-battery'
|
||||||
set -g @plugin 'tmux-plugins/tmux-yank'
|
set -g @plugin 'tmux-plugins/tmux-yank'
|
||||||
set -g @plugin 'tmux-plugins/tmux-pain-control'
|
set -g @plugin 'tmux-plugins/tmux-pain-control'
|
||||||
set -g @plugin 'tmux-plugins/tmux-logging'
|
set -g @plugin 'tmux-plugins/tmux-logging'
|
||||||
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||||
set -g @plugin 'catppuccin/tmux'
|
|
||||||
|
|
||||||
# Initialize TMUX plugin manager
|
# Initialize TMUX plugin manager
|
||||||
run -b '~/.tmux/plugins/tpm/tpm'
|
run -b '~/.tmux/plugins/tpm/tpm'
|
||||||
|
@ -74,3 +74,5 @@ export PATH=/opt/homebrew/bin:$PATH
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
eval "$(atuin init zsh)"
|
eval "$(atuin init zsh)"
|
||||||
|
|
||||||
|
source $HOME/.config/broot/launcher/bash/br
|
||||||
|
Loading…
Reference in New Issue
Block a user