Skip to content

Commit

Permalink
docs(gitblame): Use setup (#421)
Browse files Browse the repository at this point in the history
There was an [issue](f-person/git-blame.nvim#65)
on git-blame.nvim about `vim.g.gitblame_disable = 0` not working with
Lunar.

I recently implemented a setup function which solves this issue.
This commit uses `setup`, instead of legacy vim.g in order to avoid any
confusions for users who wanna use git-blame :).
  • Loading branch information
f-person committed Aug 26, 2023
1 parent ffbfb31 commit 47ea6af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ vim.keymap.set('n', ',W', swap_windows, { desc = 'Swap windows' })
event = "BufRead",
config = function()
vim.cmd "highlight default link gitblame SpecialComment"
vim.g.gitblame_enabled = 0
require("gitblame").setup { enabled = false }
end,
},
```
Expand Down

0 comments on commit 47ea6af

Please sign in to comment.