I have clangd installed. How do I connect it with ALE? #3937
-
|
When I use commands like But when I run My My |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
The clangd is already defined in ALE, you do not need to define it again in your configuration. First add ALE should be able to find the clangd binary on its own but you can tell it where to find it if it doesn't: You can also set options that ALE will use when invoking clangd. See Finally make sure vim/neovim current folder is a C project folder. ALE won't start the language server if it cannot find the project root. The project root will be the path where the compile_commands.json file is located. |
Beta Was this translation helpful? Give feedback.
The clangd is already defined in ALE, you do not need to define it again in your configuration.
First add
clangdto your list of enabled linters. Currently you only have defined clangtidy for C files (see:h g:ale_linters):ALE should be able to find the clangd binary on its own but you can tell it where to find it if it doesn't:
You can also set options that ALE will use when invoking clangd. See
:h ale-c-clangdfor additonal details.Finally make sure vim/neovim current folder is a C project folder. ALE won't start the language server if it cannot find the project root.…