diff --git a/modules/home-manager/neovim.nix b/modules/home-manager/neovim.nix index 42b2e83..9197967 100644 --- a/modules/home-manager/neovim.nix +++ b/modules/home-manager/neovim.nix @@ -233,7 +233,16 @@ local capabilities = require('cmp_nvim_lsp').default_capabilities() -- LSP server setup vim.lsp.config("lua_ls", { cmd = { "lua-language-server" }, filetypes = { "lua" }, root_dir = vim.fs.dirname, on_attach = on_attach }) -vim.lsp.config("clangd", { cmd = { "clangd" }, filetypes = { "c","cpp","objc","objcpp" }, on_attach = on_attach }) + vim.lsp.config("clangd", { + cmd = { "clangd" }, + filetypes = { "c","cpp","objc","objcpp" }, + on_attach = on_attach , + init_options = { + clangdFileStatus = true, + usePlaceholders = true, + completeUnimported = true, + semanticHighlighting = true} +}) vim.lsp.config("pylsp", { cmd = { "pylsp" }, filetypes = { "python" },