Closed Gelio closed 2 years ago
Use setlocal instead of set to set vim options inside of the code-actions buffer.
setlocal
set
This prevents overriding users global options and only applies the options inside the code-actions buffer.
To reproduce the problem:
:set scrolloff=5
:verbose set scrolloff?
On main it says:
main
scrolloff=0 Last set from ~/.local/share/nvim/site/pack/packer/opt/nvim-code-action-menu/ftplugin/code-action-menu-menu.vim line 23
With this fix:
scrolloff=5
Fixes https://github.com/weilbith/nvim-code-action-menu/issues/40
Thank you! 🤗
Awesome, thanks for merging it so fast! :rocket:
Use
setlocal
instead ofset
to set vim options inside of the code-actions buffer.This prevents overriding users global options and only applies the options inside the code-actions buffer.
To reproduce the problem:
:set scrolloff=5
:verbose set scrolloff?
On
main
it says:With this fix:
Fixes https://github.com/weilbith/nvim-code-action-menu/issues/40