home: vim: lspconfig: remove 'rnix-lsp'
It's been abandoned, `nil` is a better language server nowadays.
This commit is contained in:
parent
276cc7e5f2
commit
3fb758028c
|
@ -45,13 +45,6 @@ if utils.is_executable("nil") then
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
if utils.is_executable("rnix-lsp") then
|
|
||||||
lspconfig.rnix.setup({
|
|
||||||
capabilities = capabilities,
|
|
||||||
on_attach = lsp.on_attach,
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Python
|
-- Python
|
||||||
if utils.is_executable("pyright") then
|
if utils.is_executable("pyright") then
|
||||||
lspconfig.pyright.setup({
|
lspconfig.pyright.setup({
|
||||||
|
|
|
@ -31,11 +31,9 @@ null_ls.register({
|
||||||
-- Nix
|
-- Nix
|
||||||
null_ls.register({
|
null_ls.register({
|
||||||
null_ls.builtins.formatting.nixpkgs_fmt.with({
|
null_ls.builtins.formatting.nixpkgs_fmt.with({
|
||||||
-- Only used if available, but prefer rnix if available
|
-- Only used if available, but prefer LSP if available
|
||||||
condition = function()
|
condition = function()
|
||||||
return utils.is_executable("nixpkgs-fmt")
|
return utils.is_executable("nixpkgs-fmt") and not utils.is_executable("nil")
|
||||||
and not utils.is_executable("rnix-lsp")
|
|
||||||
and not utils.is_executable("nil")
|
|
||||||
end,
|
end,
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue