Add ccls config to nvim
This commit is contained in:
parent
a3b4124161
commit
a6d5087749
|
@ -150,15 +150,18 @@ lspconfig.terraformls.setup({})
|
|||
-- json & yaml
|
||||
lspconfig.jsonls.setup({})
|
||||
lspconfig.yamlls.setup({})
|
||||
-- helm
|
||||
-- lspconfig.helm_ls.setup({
|
||||
-- filetypes = { "helm" },
|
||||
-- cmd = { "helm_ls", "serve" },
|
||||
-- root_dir = function(fname)
|
||||
-- return require("lspconfig.util").root_pattern("Chart.yaml")(fname)
|
||||
-- end,
|
||||
-- })
|
||||
|
||||
-- c/c++
|
||||
lspconfig.ccls.setup({
|
||||
init_options = {
|
||||
compilationDatabaseDirectory = "build",
|
||||
index = {
|
||||
threads = 0,
|
||||
},
|
||||
clang = {
|
||||
excludeArgs = { "-frounding-math" },
|
||||
},
|
||||
},
|
||||
})
|
||||
-- Customize keymaps
|
||||
local cmp = require("cmp")
|
||||
cmp.setup({
|
||||
|
|
Loading…
Reference in New Issue