mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 02:28:37 +02:00
Some corrections in nvim config
This commit is contained in:
@@ -233,7 +233,16 @@ local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
|||||||
|
|
||||||
-- LSP server setup
|
-- 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("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", {
|
vim.lsp.config("pylsp", {
|
||||||
cmd = { "pylsp" },
|
cmd = { "pylsp" },
|
||||||
filetypes = { "python" },
|
filetypes = { "python" },
|
||||||
|
|||||||
Reference in New Issue
Block a user