aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-05-20 16:31:40 +0200
committerThomas Vanbesien <tvanbesi@proton.me>2026-05-20 16:31:40 +0200
commitc05f6803c48b6d22e4b8b8437dfd922d34da3ebb (patch)
tree29ec79343872860043697059485592dbca5b0d49
parent647be04d1eaa18123c69432e8694a1c14b366864 (diff)
downloadnvim-config-c05f6803c48b6d22e4b8b8437dfd922d34da3ebb.tar.gz
nvim-config-c05f6803c48b6d22e4b8b8437dfd922d34da3ebb.zip
refactor(nvim): install vim-gitgutter in 50-git.lua
-rw-r--r--init.lua5
-rw-r--r--plugin/50-git.lua2
2 files changed, 3 insertions, 4 deletions
diff --git a/init.lua b/init.lua
index e6492ac..35d97f3 100644
--- a/init.lua
+++ b/init.lua
@@ -70,10 +70,7 @@ vim.api.nvim_create_autocmd({ "WinEnter", "TermOpen" }, {
-- Plugins
------------------------------------------------------------------------------------------------------------------------
-vim.pack.add({
- "https://github.com/tpope/vim-surround", -- Manipulate delimiters
- "https://github.com/airblade/vim-gitgutter", -- Show git status in the gutter
-})
+vim.pack.add({ "https://github.com/tpope/vim-surround" }) -- Manipulate delimiters
------------------------------------------------------------------------------------------------------------------------
-- Commands (there's more in the different plugins)
diff --git a/plugin/50-git.lua b/plugin/50-git.lua
index 66adda8..247dfa3 100644
--- a/plugin/50-git.lua
+++ b/plugin/50-git.lua
@@ -1,3 +1,5 @@
+vim.pack.add({ "https://github.com/airblade/vim-gitgutter" }) -- Show git status in the gutter
+
local function git_blame(file, line)
vim.cmd(string.format("!git blame --line-porcelain -L %d,%d -- %s", line, line, file))
end