We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Normally, highlighting is ok, but when an LSP kicks in, it recolors some of the identifiers wrongly (mainly variables)
Before LSP: After LSP:
The text was updated successfully, but these errors were encountered:
I did some research. I found out that the issue was the semantic highlighting of the LSP. In order to disable them, put this snippet in your init.lua
init.lua
vim.api.nvim_create_autocmd({ "ColorScheme" }, { callback = function() -- Hide semantic highlights for functions vim.api.nvim_set_hl(0, '@lsp.type.function', {}) -- Hide all semantic highlights for _, group in ipairs(vim.fn.getcompletion("@lsp", "highlight")) do vim.api.nvim_set_hl(0, group, {}) end end, })
This snippet was basically a copy-paste from :h lsp-semantic-highlight into an autocmd; it also contains info on doing the highlighting.
:h lsp-semantic-highlight
Sorry, something went wrong.
No branches or pull requests
Normally, highlighting is ok, but when an LSP kicks in, it recolors some of the identifiers wrongly (mainly variables)
Before LSP:
After LSP:
The text was updated successfully, but these errors were encountered: