summaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua/user/\
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/user/\')
-rw-r--r--.config/nvim/lua/user/\13
1 files changed, 13 insertions, 0 deletions
diff --git a/.config/nvim/lua/user/\ b/.config/nvim/lua/user/\
new file mode 100644
index 0000000..2baf779
--- /dev/null
+++ b/.config/nvim/lua/user/\
@@ -0,0 +1,13 @@
+lsp = require 'lspconfig'
+
+lsp.clangd.setup {
+ cmd = {"clangd", "--background-index", "--suggest-missing-includes", "--clang-tidy"},
+ filetypes = {"c", "cpp", "cxx", "h", "hpp", "hxx", "inc", "objc", "objcpp"},
+ root_dir = lspconfig.utill.root_pattern("CMakeLists.txt", "Makefile", "qmake.pro", ".git"),
+ init_options = {
+ clangdFileStatus = true,
+ usePlaceholders = true,
+ completeUnimported = true,
+ semanticHighlighting = true,
+ },
+}