-
Notifications
You must be signed in to change notification settings - Fork 3
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
Auto disable when buffer is diff
#20
Comments
Good question! I have no idea, I will have to investigate this. I initially thought it was just a buftype but it seems that is not the case. Probably some special shenanigans that need to be done to check for this. |
A check would need to be added for the window value 'diff'. Something like if vim.api.nvim_get_option_value('diff', { win = 0 } ) then
-- Do a thing to prevent sunglasses from actioning this window
end There is nothing like this in sunglasses currently, this would be a PR. If you are comfortable doing so, feel free to poke about in window:can_shade, that is where this logic would go. An option would need to be added to enable this as well. IMO even though 'diff' is special, I think we can still cheese it and add 'diff' as a defaulted excluded filetype. Though I will leave that decision up to the implementer which may or may not be me sometime in the future. Lastly, this option is something that IMO should be enabled by default |
Thank you. I'll see how to resolve. For now I adopt the |
That makes sense. I am reopening this as this is a feature that sunglasses should have |
Hi.
Is it possible? How (aside
aucmd
in plugin setup)thank you
The text was updated successfully, but these errors were encountered: