add nix support
This commit is contained in:
@@ -342,6 +342,7 @@ function setup_plugins()
|
|||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
nix = { require("formatter.filetypes.nix").nixpkgs_fmt },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@@ -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"
|
||||||
|
Reference in New Issue
Block a user