From a6d5087749f507ab7419daf255e248d456c7d397 Mon Sep 17 00:00:00 2001 From: TheEdgeOfRage Date: Thu, 7 Mar 2024 13:10:43 +0100 Subject: [PATCH] Add ccls config to nvim --- dot_config/nvim/lua/lsp.lua | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/dot_config/nvim/lua/lsp.lua b/dot_config/nvim/lua/lsp.lua index 308fc99..dcd37d9 100644 --- a/dot_config/nvim/lua/lsp.lua +++ b/dot_config/nvim/lua/lsp.lua @@ -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({