diff options
Diffstat (limited to 'dotfiles/vim.lua')
-rw-r--r-- | dotfiles/vim.lua | 21 |
1 files changed, 21 insertions, 0 deletions
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 |