-
Notifications
You must be signed in to change notification settings - Fork 411
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
Incorrect highlighting #1649
Comments
I am working on a neovim gui and have encountered the same problem. |
The following change to nvim-cmp should fix this problem: diff --git a/plugin/cmp.lua b/plugin/cmp.lua
index 0e5e691..611b5c9 100644
--- a/plugin/cmp.lua
+++ b/plugin/cmp.lua
@@ -25,7 +25,7 @@ for kind in pairs(types.lsp.CompletionItemKind) do
end
end
-autocmd.subscribe('ColorScheme', function()
+autocmd.subscribe({ 'ColorScheme', 'UIEnter' }, function()
highlight.inherit('CmpItemAbbrDefault', 'Pmenu', { bg = 'NONE', default = false })
highlight.inherit('CmpItemAbbrDeprecatedDefault', 'Comment', { bg = 'NONE', default = false })
highlight.inherit('CmpItemAbbrMatchDefault', 'Pmenu', { bg = 'NONE', default = false }) |
It was difficult to arrive at this on my own... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using nvim --headless and connecting with neovide, the highlighting of the cmp plugin is problematic, has anyone encountered this?
The text was updated successfully, but these errors were encountered: