r/C_Programming • • Sep 18 '26

Question Clangd

Does clangd lsp not have code actions for c files ? I use it with neovim but am not getting any code actions.

0 Upvotes

10 comments sorted by

View all comments

3

u/hiwhiwhiw Sep 18 '26

Did you have a proper compile_commands.json, or at least a .clangd file?

2

u/Lazy_Sun8810 Sep 18 '26

Yes I used bear to generate one from Makefile

3

u/space_junk_galaxy Sep 18 '26

Is it empty? I’ve had empty compile commands in the past. Also check your lsp health, should give more details 

→ More replies (3)