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

[#154] avoid execute() in capture_highlight #158

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Boolean263
Copy link

Instead of using execute() to get the foreground and background colours of a colour scheme, use synIDattr() and related functions. This prevents an E12 error when using this plugin in neovim to edit a file which has a modeline.

Tested in neovim 0.9.0 and vim 8.2.

Closes #154

Instead of using `execute()` to get the foreground and background
colours of a colour scheme, use [`synIDattr()`][1] and related
functions. This prevents an E12 error when using this plugin in neovim
to edit a file which has a [modeline][2].

Tested in neovim 0.9.0 and vim 8.2.

[1]: https://vimhelp.org/builtin.txt.html#synIDattr%28%29
[2]: https://vimhelp.org/options.txt.html#modeline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

error on execute() when triggered from modeline in neovim
1 participant