a6d5087749f507ab7419daf255e248d456c7d397

Author
TheEdgeOfRage <git@theedgeofrage.com>
Committer
TheEdgeOfRage <git@theedgeofrage.com>
Date

Message

Add ccls config to nvim

Diff

 1diff --git a/dot_config/nvim/lua/lsp.lua b/dot_config/nvim/lua/lsp.lua
 2index 308fc999c51f09f70bf945c7e0bc4f8f7fbba993..dcd37d9d243baa320befd7d1e02b14e71b0c55f0 100644
 3--- a/dot_config/nvim/lua/lsp.lua
 4+++ b/dot_config/nvim/lua/lsp.lua
 5@@ -150,15 +150,18 @@ lspconfig.terraformls.setup({})
 6 -- json & yaml
 7 lspconfig.jsonls.setup({})
 8 lspconfig.yamlls.setup({})
 9--- helm
10--- lspconfig.helm_ls.setup({
11--- 	filetypes = { "helm" },
12--- 	cmd = { "helm_ls", "serve" },
13--- 	root_dir = function(fname)
14--- 		return require("lspconfig.util").root_pattern("Chart.yaml")(fname)
15--- 	end,
16--- })
17-
18+-- c/c++
19+lspconfig.ccls.setup({
20+	init_options = {
21+		compilationDatabaseDirectory = "build",
22+		index = {
23+			threads = 0,
24+		},
25+		clang = {
26+			excludeArgs = { "-frounding-math" },
27+		},
28+	},
29+})
30 -- Customize keymaps
31 local cmp = require("cmp")
32 cmp.setup({