summaryrefslogtreecommitdiff
path: root/lua/lsp.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lsp.lua')
-rw-r--r--lua/lsp.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lsp.lua b/lua/lsp.lua
index 5ae7cde..a5b22fa 100644
--- a/lua/lsp.lua
+++ b/lua/lsp.lua
@@ -21,7 +21,7 @@ configs.clangd = {
cmd = { "clangd" },
filetypes = { "c", "cpp" },
settings = {},
- root_dir = nvim_lsp.util.root_pattern(""),
+ root_dir = nvim_lsp.util.root_pattern({"Makefile", "CMakeLists.txt"}),
},
}