summaryrefslogtreecommitdiffstats
path: root/dotfiles/vim.lua
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2022-04-11 22:08:50 +0200
committerMinijackson <minijackson@riseup.net>2022-04-11 22:11:01 +0200
commit6a1ad74c07b98e54bed17c8a592c1cf204a6af82 (patch)
tree06b70fb9efe9e5425b08a95e480f666fc6c53568 /dotfiles/vim.lua
parent04d5a06586786b83bfcde1d031f872df062dc84d (diff)
downloadnixos-config-reborn-6a1ad74c07b98e54bed17c8a592c1cf204a6af82.tar.gz
nixos-config-reborn-6a1ad74c07b98e54bed17c8a592c1cf204a6af82.zip
vim: switch from fugitive to neogit
Diffstat (limited to 'dotfiles/vim.lua')
-rw-r--r--dotfiles/vim.lua21
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)
247vim.cmd "autocmd TextYankPost * if v:event.regname is 't' | OSCYankReg t | endif" 247vim.cmd "autocmd TextYankPost * if v:event.regname is 't' | OSCYankReg t | endif"
248 248
249-- Diffview
250
251require("diffview").setup {
252 use_icons = false,
253 enhanced_diff_hl = true,
254}
255
256-- Neogit
257
258require("neogit").setup {
259 signs = {
260 section = { "", "" },
261 item = { "", "" },
262 },
263 integrations = {
264 diffview = true,
265 },
266}
267
268-- Local config
269
249function isModuleAvailable(name) 270function isModuleAvailable(name)
250 if package.loaded[name] then 271 if package.loaded[name] then
251 return true 272 return true