home: vim: don't use 'nixpkgs-fmt' with 'rnix'

This commit is contained in:
Bruno BELANYI 2022-03-04 14:21:28 +01:00
parent 8b4a5e174f
commit bde9bef1c9

View file

@ -27,8 +27,10 @@ null_ls.register({
-- Nix
null_ls.register({
null_ls.builtins.formatting.nixpkgs_fmt.with({
-- Only used if available
condition = utils.is_executable_condition("nixpkgs-fmt"),
-- Only used if available, but prefer rnix if available
condition = function()
return utils.is_executable("nixpkgs-fmt") and not utils.is_executable("rnix-lsp")
end,
}),
})