Skip to content

Make clangd right-clicking more prominent #1375

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

Closed
jxu opened this issue Feb 21, 2025 · 10 comments
Closed

Make clangd right-clicking more prominent #1375

jxu opened this issue Feb 21, 2025 · 10 comments

Comments

@jxu
Copy link

jxu commented Feb 21, 2025

I'm not sure this is a kickstart issue. But I uncommented clangd and the warning message it generates can't fit on the screen.
Only through trial and error did I find out about popup menus with right click. Is there a default to get it to show up on the bottom of the screen?

Image

@ro0gr
Copy link

ro0gr commented Feb 21, 2025

Last time I encountered a similar issue, I ended up using diagflow.nvim.

If there's a built-in Neovim solution to improve the hints, it would be great to include it in the Kickstart project. That way, users can have a smoother experience out of the box and avoid running into this kind issues.

@rfletchr
Copy link
Contributor

I believe this is a trade-off of the virtual text system. If you wrap virtual text it will disturb the layout of your text and result in constant shifting.

There is however a lua function to show the lines diagnostics in a float

vim.diagnostic.open_float(0, { scope = "line" })

this could be bound to a key

Image

@jxu
Copy link
Author

jxu commented Feb 24, 2025

Yes, maybe Enter or Tab or something.

@VlaDexa
Copy link
Contributor

VlaDexa commented Mar 17, 2025

Try using <leader>e

@feoh
Copy link
Collaborator

feoh commented Mar 20, 2025

@jxu @VlaDexa Did you try the workaround? Do we
still need this PR?

@VlaDexa
Copy link
Contributor

VlaDexa commented Mar 20, 2025

forgot that <leader>e got removed from kickstart in 0.10 updates, because since 0.10 <C-W>d (and <C-W><C-D>) map to |vim.diagnostic.open_float()|.

@feoh
Copy link
Collaborator

feoh commented Apr 9, 2025

Seems like everyone's all set here. Please re-open if that's not the case!

@feoh feoh closed this as completed Apr 9, 2025
@jxu
Copy link
Author

jxu commented Apr 9, 2025

Is there some kind of documentation about this?

@feoh
Copy link
Collaborator

feoh commented Apr 9, 2025

:help diagnostic ?

@jxu
Copy link
Author

jxu commented Apr 9, 2025

Ok. As someone who used to use vim with syntastic, that should be mentioned somewhere prominent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants