Since nvim 0.10 released, the signature_help floating window got syntax highlight powered by treesitter, like this:
and cmp documentation highlight looks like:
I guess the red bracket in documentation window is related on this issue, which is fixed at nvim 0.10
Maybe cmp could highlight documentation window like vim.lsp.buf.signature_help()?
And I think noice.nvim is already do some hack that we can reference to:
https://github.com/folke/noice.nvim/blob/9f6f6ba74f8bfbf7e43d6302cf86b070362f6203/lua/noice/lsp/override.lua#L12-L34
Steps to reproduce
Select some lsp completion item to make cmp show documentation window
Expected behavior
Syntax highlight like vim.lsp.buf.signature_help()
FAQ
Announcement
Minimal reproducible full config
None, no need for this issue.
Description
Since nvim 0.10 released, the signature_help floating window got syntax highlight powered by treesitter, like this: and cmp documentation highlight looks like: I guess the red bracket in documentation window is related on this issue, which is fixed at nvim 0.10 Maybe cmp could highlight documentation window like
vim.lsp.buf.signature_help()
? And I think noice.nvim is already do some hack that we can reference to: https://github.com/folke/noice.nvim/blob/9f6f6ba74f8bfbf7e43d6302cf86b070362f6203/lua/noice/lsp/override.lua#L12-L34Steps to reproduce
Select some lsp completion item to make cmp show documentation window
Expected behavior
Syntax highlight like
vim.lsp.buf.signature_help()
Actual behavior
documentation window only have basic highlight
Additional context
No response