diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-05-20 16:31:40 +0200 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-05-20 16:31:40 +0200 |
| commit | c05f6803c48b6d22e4b8b8437dfd922d34da3ebb (patch) | |
| tree | 29ec79343872860043697059485592dbca5b0d49 | |
| parent | 647be04d1eaa18123c69432e8694a1c14b366864 (diff) | |
| download | nvim-config-c05f6803c48b6d22e4b8b8437dfd922d34da3ebb.tar.gz nvim-config-c05f6803c48b6d22e4b8b8437dfd922d34da3ebb.zip | |
refactor(nvim): install vim-gitgutter in 50-git.lua
| -rw-r--r-- | init.lua | 5 | ||||
| -rw-r--r-- | plugin/50-git.lua | 2 |
2 files changed, 3 insertions, 4 deletions
@@ -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 |
