Enable clang-tidy for clangd #392
-
Hey! First of all, I absolutely love this plugin! Thanks for making this. I have a question regarding the clangd lsp server. I want to enable clang-tidy support for this lsp. However, this is done through a command line flag as seen here: https://neovim.discourse.group/t/how-to-enable-the-header-insertion-of-clangd/1234 . As opposed to a json setting, I believe. To do this I would need to override the Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Hello and thanks for your kind words! Recently I made a change where nvim-lsp-installer no longer (apart from a few exceptions) overrides the server:setup {
cmd = {
"clangd",
"--background-index",
"-j=12",
"--query-driver=/usr/bin/**/clang-*,/bin/clang,/bin/clang++,/usr/bin/gcc,/usr/bin/g++",
"--clang-tidy",
"--clang-tidy-checks=*",
"--all-scopes-completion",
"--cross-file-rename",
"--completion-style=detailed",
"--header-insertion-decorators",
"--header-insertion=iwyu",
"--pch-storage=memory",
}
} |
Beta Was this translation helpful? Give feedback.
-
@kelvin-van-vuuren I saw that the |
Beta Was this translation helpful? Give feedback.
Hello and thanks for your kind words! Recently I made a change where nvim-lsp-installer no longer (apart from a few exceptions) overrides the
cmd
governed by lspconfig. Instead it will extend thePATH
, allowing you to configure thecmd
accordingly. So you should be able to just