mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
flake/devshell: run treefmt directly in format
command
This is much faster than running `nix fmt`. Running treefmt directly will use the treefmt installed in the current shell. Running `nix fmt` will first re-evaluate the flake.
This commit is contained in:
parent
46e1359338
commit
4c989abc8c
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@
|
||||||
{
|
{
|
||||||
name = "format";
|
name = "format";
|
||||||
help = "Format the entire codebase";
|
help = "Format the entire codebase";
|
||||||
command = "nix fmt";
|
command = lib.getExe config.formatter;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "docs";
|
name = "docs";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue