Skip to content

I have clangd installed. How do I connect it with ALE? #3937

Discussion options

You must be logged in to vote

The clangd is already defined in ALE, you do not need to define it again in your configuration.

First add clangd to your list of enabled linters. Currently you only have defined clangtidy for C files (see :h g:ale_linters):

let g:ale_linters = {'c': ['clangtidy'], 'python': ['flake8']}

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:

let g:ale_c_clangd_executable = '/path/to/bin/clangd'

You can also set options that ALE will use when invoking clangd. See :h ale-c-clangd for 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.…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ubaldot
Comment options

@hsanson
Comment options

@ubaldot
Comment options

Answer selected by ubaldot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants