home: vim: don't use 'nixpkgs-fmt' with 'rnix'
This commit is contained in:
parent
8b4a5e174f
commit
bde9bef1c9
|
@ -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