Add ccls config to nvim

This commit is contained in:
Pavle Portic 2024-03-07 13:10:43 +01:00
parent a3b4124161
commit a6d5087749
Signed by: TheEdgeOfRage
GPG Key ID: 66AD4BA646FBC0D2
1 changed files with 12 additions and 9 deletions

View File

@ -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({