diff options
-rw-r--r-- | common/vim.nix | 2 | ||||
-rw-r--r-- | dotfiles/vim.lua | 21 |
2 files changed, 22 insertions, 1 deletions
diff --git a/common/vim.nix b/common/vim.nix index 5ee48c7..09dd9f5 100644 --- a/common/vim.nix +++ b/common/vim.nix | |||
@@ -105,7 +105,7 @@ let | |||
105 | 105 | ||
106 | # Other | 106 | # Other |
107 | tmux-complete-vim | 107 | tmux-complete-vim |
108 | vim-fugitive | 108 | neogit |
109 | vim-rhubarb | 109 | vim-rhubarb |
110 | vim-repeat | 110 | vim-repeat |
111 | vim-unimpaired | 111 | vim-unimpaired |
diff --git a/dotfiles/vim.lua b/dotfiles/vim.lua index d3604e3..9317453 100644 --- a/dotfiles/vim.lua +++ b/dotfiles/vim.lua | |||
@@ -246,6 +246,27 @@ map("s", "<S-Tab>", "vsnip#jumpable(-1) ? '<Plug>(vsnip-jump-prev)' : '<Tab>'", | |||
246 | -- (e.g. goes through SSH) | 246 | -- (e.g. goes through SSH) |
247 | vim.cmd "autocmd TextYankPost * if v:event.regname is 't' | OSCYankReg t | endif" | 247 | vim.cmd "autocmd TextYankPost * if v:event.regname is 't' | OSCYankReg t | endif" |
248 | 248 | ||
249 | -- Diffview | ||
250 | |||
251 | require("diffview").setup { | ||
252 | use_icons = false, | ||
253 | enhanced_diff_hl = true, | ||
254 | } | ||
255 | |||
256 | -- Neogit | ||
257 | |||
258 | require("neogit").setup { | ||
259 | signs = { | ||
260 | section = { "", "" }, | ||
261 | item = { "", "" }, | ||
262 | }, | ||
263 | integrations = { | ||
264 | diffview = true, | ||
265 | }, | ||
266 | } | ||
267 | |||
268 | -- Local config | ||
269 | |||
249 | function isModuleAvailable(name) | 270 | function isModuleAvailable(name) |
250 | if package.loaded[name] then | 271 | if package.loaded[name] then |
251 | return true | 272 | return true |