Closed ubaldot closed 8 months ago
The efm-langserver (https://github.com/mattn/efm-langserver) can be used with cppcheck. The page (https://github.com/tsuyoshicho/vim-efm-langserver-settings/blob/master/config/efm-langserver/config.yaml) has information about how to configure efm-langserver for cppcheck.
You can refer to https://github.com/yegappan/lsp/wiki for information about adding the efm-langserver to the LSP plugin.
You can use multiple language servers for a given file type with the LSP plugin. Refer to https://github.com/yegappan/lsp/blob/main/doc/lsp.txt#L1764 for instructions about using multiple language servers. You can use both the clangd and efm-langserver servers for a C/C++ file.
Awesome! Thank you very much!
I am using clangd along with clang-tidy, but the latter gives me to many errors and cherry pick its feature takes too much time. On the other hand, I find cppcheck sharper and I would like to use this instead of clang-tidy. If there any way to us it with LSP or shall I resort to an external tool such as ALE?