home: vim: don't use 'nixpkgs-fmt' with 'rnix'
This commit is contained in:
parent
d36f01d937
commit
38c140ee86
|
@ -27,8 +27,10 @@ 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
|
-- Only used if available, but prefer rnix if available
|
||||||
condition = utils.is_executable_condition("nixpkgs-fmt"),
|
condition = function()
|
||||||
|
return utils.is_executable("nixpkgs-fmt") and not utils.is_executable("rnix-lsp")
|
||||||
|
end,
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue