-
-
Notifications
You must be signed in to change notification settings - Fork 168
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
Ability to disable per-buffer #56
Comments
Given gitsigns is a lua plugin, I'd like to implement this enhancement as an exposed lua function. It would be used as: :lua require('gitsigns').detach() We could implement this via a command or buffer local variable, but up until now I've tried to avoid introducing these and have only had lua as the interface to the plugin. Would this solution be acceptable or would you much prefer this wrapped in a command for convenience? |
That definitely makes sense to me, and in principle certainly works for my purposes. I tested your latest version with the commits above, though (and thanks for doing that so quickly!), and it doesn't quite seem to work as expected. If I open a file that already has some changes (versus the git state), which |
Ah, thanks for testing. We just need to delete all the signs in that buffer. Will update soon. |
I think this is resolved now. Please reopen otherwise. |
Yes, this seems to work for me now. Thanks! |
Im trying to disable gitsigns on markdown buffers by running a Ideally, I would like to be able to prevent attaching gitsigns to md buffers at all (buffer enter, write, etc) rather than having to detach it Thanks! |
Take a look at |
@lewis6991 oh, I missed that. Thank! |
Is your feature request related to a problem? Please describe.
Thanks for making gitsigns.nvim! I used to use vim-gitgutter but gitsigns.nvim is almost a complete drop-in replacement and is much faster/more efficient.
One feature I've noticed that's missing though; sometimes I used to disable signs on a per-buffer basis using
:GitGutterDisable
. It would be really nice to have an equivalent of this in gitsigns.Describe the solution you'd like
Either a command (like
:GitSignsDisableBuffer
, probably with a corresponding:GitSignsEnableBuffer
) or a buffer-local variable (e.g.b:git_signs_disable=1
) which can turn off the signs in a buffer.Describe alternatives you've considered
One alternative is to go back to gitgutter, obviously don't want to do that. Not aware of any other alternatives.
Thanks for all your hard work on this plugin!
The text was updated successfully, but these errors were encountered: