add nix support

This commit is contained in:
2024-08-31 00:43:45 +01:00
parent bcac48a465
commit 41f03b9091
2 changed files with 8 additions and 0 deletions

View File

@@ -342,6 +342,7 @@ function setup_plugins()
}
end,
},
nix = { require("formatter.filetypes.nix").nixpkgs_fmt },
},
})

View File

@@ -5,6 +5,8 @@ $directory\
$git_branch\
$git_state\
$git_status\
$nix_shell\
$python\
$line_break\
$character"""
@@ -43,3 +45,8 @@ style = "dimmed"
[python]
format = "[$virtualenv]($style) "
style = "bright-black"
[nix_shell]
format = ' [$symbol$state( \($name\))]($style) '
symbol = " "
style = "dimmed purple"