Files
nvim/lua/lspconf.lua
T
2026-10-03 21:04:34 +02:00

37 lines
662 B
Lua

vim.lsp.enable({ "lua_ls", "nixd", "clang", "rust-analyzer" })
-- RUST
vim.lsp.config('rust-analyzer', {
cmd = { 'rust-analyzer' },
filetypes = { 'rust' },
settings = {
["rust_analyzer"] = {
completion = {
callable = {
snippets = "fill_arguments",
},
postfix = {
enable = false,
},
autoimport = {
enable = true,
},
},
},
},
})
-- NIX
vim.lsp.config('nixd', {
cmd = { 'nixd' },
filetypes = { 'nix' },
root_markers = { 'flake.nix', '.git' },
settings = {
nixd = {
formatting = {
command = { "alejandra" },
},
},
},
})