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, end,
}, },
nix = { require("formatter.filetypes.nix").nixpkgs_fmt },
}, },
}) })

View File

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