nvim-cmp icon indicating copy to clipboard operation
nvim-cmp copied to clipboard

feature request: documentation treesitter syntax highlight like `vim.lsp.buf.signature_help()` in nvim 0.10

Open wenjinnn opened this issue 9 months ago • 0 comments

FAQ

  • [X] I have checked the FAQ and it didn't resolve my problem.

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: image and cmp documentation highlight looks like: image 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()

Actual behavior

documentation window only have basic highlight

Additional context

No response

wenjinnn avatar May 19 '24 15:05 wenjinnn