Update
This commit is contained in:
1 parent
54bafa94a7
commit
7c152cc388
2 files changed
+23
No files matched your search
@@ -0,0 +1,22 @@
|
|||||||
|
return {
|
||||||
|
cmd = { "clangd" },
|
||||||
|
filetypes = {
|
||||||
|
"c", "cpp", "objc", "objcpp",
|
||||||
|
"cuda", "proto",
|
||||||
|
},
|
||||||
|
root_markers = {
|
||||||
|
".clangd",
|
||||||
|
".clang-tidy",
|
||||||
|
".clang-format",
|
||||||
|
"compile_commands.json",
|
||||||
|
"compile_flags.txt",
|
||||||
|
"configure.ac",
|
||||||
|
"configure",
|
||||||
|
"config.h",
|
||||||
|
"Makefile",
|
||||||
|
".git",
|
||||||
|
},
|
||||||
|
capabilities = {
|
||||||
|
offsetEncoding = { "utf-16" },
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -54,6 +54,7 @@ vim.api.nvim_create_autocmd("LspAttach", {
|
|||||||
vim.lsp.enable({
|
vim.lsp.enable({
|
||||||
"lua_ls",
|
"lua_ls",
|
||||||
"ols",
|
"ols",
|
||||||
|
"clangd",
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Load Lsp on-demand, e.g: eslint is disable by default
|
-- Load Lsp on-demand, e.g: eslint is disable by default
|
||||||
|
|||||||
Reference in new issue
Block a user