Add clang-tidy to lsp
This commit is contained in:
parent
ab76baba31
commit
5343dcfa41
|
@ -108,6 +108,13 @@ require('lspconfig').clangd.setup {
|
|||
-- root_dir = function()
|
||||
-- return require('lspconfig').util.root_pattern({'.clang-format', 'build/', 'compile_flags.txt'})
|
||||
-- end
|
||||
cmd = {
|
||||
"clangd",
|
||||
"--background-index",
|
||||
"--clang-tidy",
|
||||
"--completion-style=bundled",
|
||||
"--cross-file-rename"
|
||||
}
|
||||
}
|
||||
|
||||
require('lspconfig').bashls.setup {
|
||||
|
|
Loading…
Reference in New Issue