kickstart.nvim icon indicating copy to clipboard operation
kickstart.nvim copied to clipboard

Make clangd right-clicking more prominent

Open jxu opened this issue 10 months ago • 4 comments

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

jxu avatar Feb 21 '25 04:02 jxu

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.

ro0gr avatar Feb 21 '25 17:02 ro0gr

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

rfletchr avatar Feb 24 '25 09:02 rfletchr

Yes, maybe Enter or Tab or something.

jxu avatar Feb 24 '25 15:02 jxu

Try using <leader>e

VlaDexa avatar Mar 17 '25 08:03 VlaDexa

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

feoh avatar Mar 20 '25 22:03 feoh

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()|.

VlaDexa avatar Mar 20 '25 22:03 VlaDexa

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

feoh avatar Apr 09 '25 15:04 feoh

Is there some kind of documentation about this?

jxu avatar Apr 09 '25 17:04 jxu

:help diagnostic ?

feoh avatar Apr 09 '25 18:04 feoh

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

jxu avatar Apr 09 '25 18:04 jxu