Some corrections in nvim config

This commit is contained in:
Tomas Rivera
2026-04-05 15:36:10 +02:00
parent 508bf86d97
commit 9d10631d14
+10 -1
View File
@@ -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" },