refactor(nvim): replace nil_ls
with nixd
This commit is contained in:
parent
0c1cd5e246
commit
9787880ec5
@ -483,15 +483,22 @@ return {
|
|||||||
dap_debug_gui = true,
|
dap_debug_gui = true,
|
||||||
})
|
})
|
||||||
|
|
||||||
lspconfig.nil_ls.setup({
|
-- TODO: Make this more general, this will support my own NixOS config and dot file
|
||||||
|
-- stuff, but not generally usable for other projects. Would be good to use something
|
||||||
|
-- like `.nvim.lua` for this or whatever else works 🤷.
|
||||||
|
lspconfig.nixd.setup({
|
||||||
|
cmd = { "nixd", "--semantic-tokens=false" },
|
||||||
settings = {
|
settings = {
|
||||||
["nil"] = {
|
nixd = {
|
||||||
formatting = { command = { "nixfmt" } },
|
nixpkgs = {
|
||||||
nix = {
|
expr = "import <nixpkgs> { }",
|
||||||
maxMemoryMB = 60000,
|
},
|
||||||
flake = {
|
formatting = {
|
||||||
autoArchive = true,
|
command = { "nixfmt" },
|
||||||
autoEvalInputs = true,
|
},
|
||||||
|
options = {
|
||||||
|
home_manager = {
|
||||||
|
expr = '(builtins.getFlake ("git+file://" + toString ./.)).homeConfigurations.price.options',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user