Update nvim config to 0.11.1 standards.

This commit is contained in:
Martin Lasson 2025-04-10 10:17:10 +02:00
parent fe23a8c0df
commit ae1489527c
16 changed files with 45 additions and 88 deletions

20
nvim/lsp/nil.lua Normal file
View file

@ -0,0 +1,20 @@
return {
cmd = { "nil" },
filetypes = { "nix" },
root_markers = {
"flake.nix",
".git"
},
settings = {
["nil"] = {
formatting = {
command = { "nixfmt" },
},
},
},
on_attach = function(_, bufnr)
vim.bo[bufnr].tabstop = 2
vim.bo[bufnr].shiftwidth = 2
vim.bo[bufnr].softtabstop = 2
end
}