mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
32 lines
543 B
Lua
32 lines
543 B
Lua
-- <nixCats>/lsp/nil.lua
|
|
-- Nil LSP config
|
|
|
|
vim.lsp.config("nil", {
|
|
cmd = { "nil" },
|
|
root_markers = {
|
|
"flake.nix",
|
|
"flake.lock",
|
|
},
|
|
filetypes = {
|
|
"nix",
|
|
},
|
|
-- Global config options
|
|
settings = {
|
|
["nil"] = {
|
|
formatting = {
|
|
command = { "alejandra" },
|
|
},
|
|
diagnostics = {
|
|
ignored = {},
|
|
},
|
|
nix = {
|
|
maxMemoryMB = 2560,
|
|
},
|
|
flake = {
|
|
autoArchive = false,
|
|
autoEvalImputs = true,
|
|
nixpkgsInputName = "nixpkgs",
|
|
},
|
|
},
|
|
},
|
|
})
|