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 d36f01d937
commit 38c140ee86

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,
}),
})