Update nvim config to 0.11.1 standards.
This commit is contained in:
parent
fe23a8c0df
commit
ae1489527c
16 changed files with 45 additions and 88 deletions
20
nvim/lsp/nil.lua
Normal file
20
nvim/lsp/nil.lua
Normal 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue