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 | 293865aeb7f6459d930f359b05a267ae9a85581e (patch) | |
| tree | 88c37798d172e6684fbbfec7fdf3a6a52d42eb97 | |
| parent | d0fffb71ad8eecd9d793e3bfc66b7ef0eac67290 (diff) | |
| download | dotfiles-293865aeb7f6459d930f359b05a267ae9a85581e.tar.gz dotfiles-293865aeb7f6459d930f359b05a267ae9a85581e.zip | |
refactor(nvim): install vim-gitgutter in 50-git.lua
| -rw-r--r-- | .config/nvim/init.lua | 5 | ||||
| -rw-r--r-- | .config/nvim/plugin/50-git.lua | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index e6492ac..35d97f3 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/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/.config/nvim/plugin/50-git.lua b/.config/nvim/plugin/50-git.lua index 66adda8..247dfa3 100644 --- a/.config/nvim/plugin/50-git.lua +++ b/.config/nvim/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 |
