Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(gitblame): Use setup #421

Merged
merged 1 commit into from
Aug 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
docs(gitblame): Use setup
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 18, 2023
commit 5f95b690bbc35e8fff349715ff7b7f0def7fd0d0
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