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

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

Open
2 tasks done
wenjinnn opened this issue May 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@wenjinnn
Copy link

FAQ

  • 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 wenjinnn added the bug Something isn't working label May 19, 2024
@wenjinnn wenjinnn changed the title feature request: documentation syntax highlight like vim.lsp.buf.signature_help() in nvim 0.10 feature request: documentation treesitter syntax highlight like vim.lsp.buf.signature_help() in nvim 0.10 May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant