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
|
||||
|
||||
if utils.is_executable("rnix-lsp") then
|
||||
lspconfig.rnix.setup({
|
||||
capabilities = capabilities,
|
||||
on_attach = lsp.on_attach,
|
||||
})
|
||||
end
|
||||
|
||||
-- Python
|
||||
if utils.is_executable("pyright") then
|
||||
lspconfig.pyright.setup({
|
||||
|
|
|
@ -31,11 +31,9 @@ null_ls.register({
|
|||
-- Nix
|
||||
null_ls.register({
|
||||
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()
|
||||
return utils.is_executable("nixpkgs-fmt")
|
||||
and not utils.is_executable("rnix-lsp")
|
||||
and not utils.is_executable("nil")
|
||||
return utils.is_executable("nixpkgs-fmt") and not utils.is_executable("nil")
|
||||
end,
|
||||
}),
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue