mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-13 22:17:49 +00:00
Merge branch 'main' into feat/sqruff
This commit is contained in:
commit
dfc3ab667b
2 changed files with 23 additions and 11 deletions
|
|
@ -22,8 +22,8 @@
|
||||||
|
|
||||||
Some other settings and commands are now deprecated but are still supported.
|
Some other settings and commands are now deprecated but are still supported.
|
||||||
|
|
||||||
- The `setupOpts.mappings` options were also removed. Use the built-in
|
- The `setupOpts.mappings` options were also removed. Use the built-in Neovim
|
||||||
Neovim settings (nvf's {option}`vim.keymaps`)
|
settings (nvf's {option}`vim.keymaps`)
|
||||||
|
|
||||||
## Changelog {#sec-release-0-9-changelog}
|
## Changelog {#sec-release-0-9-changelog}
|
||||||
|
|
||||||
|
|
@ -69,7 +69,8 @@
|
||||||
|
|
||||||
[jtliang24](https://github.com/jtliang24):
|
[jtliang24](https://github.com/jtliang24):
|
||||||
|
|
||||||
- Updated nix language plugin to use pkgs.nixfmt instead of pkgs.nixfmt-rfc-style
|
- Updated nix language plugin to use pkgs.nixfmt instead of
|
||||||
|
pkgs.nixfmt-rfc-style
|
||||||
|
|
||||||
[alfarel](https://github.com/alfarelcynthesis):
|
[alfarel](https://github.com/alfarelcynthesis):
|
||||||
|
|
||||||
|
|
|
||||||
27
flake.nix
27
flake.nix
|
|
@ -91,18 +91,29 @@
|
||||||
# Check if codebase is properly formatted.
|
# Check if codebase is properly formatted.
|
||||||
# This can be initiated with `nix build .#checks.<system>.nix-fmt`
|
# This can be initiated with `nix build .#checks.<system>.nix-fmt`
|
||||||
# or with `nix flake check`
|
# or with `nix flake check`
|
||||||
nix-fmt = pkgs.runCommand "nix-fmt-check" {nativeBuildInputs = [pkgs.alejandra];} ''
|
nix-fmt =
|
||||||
alejandra --check ${self} < /dev/null
|
pkgs.runCommand "nix-fmt-check"
|
||||||
touch $out
|
{
|
||||||
'';
|
src = self;
|
||||||
|
nativeBuildInputs = [pkgs.alejandra pkgs.fd];
|
||||||
|
} ''
|
||||||
|
cd "$src"
|
||||||
|
fd -t f -e nix -x alejandra --check '{}'
|
||||||
|
touch $out
|
||||||
|
'';
|
||||||
|
|
||||||
# Check if Markdown sources are properly formatted
|
# Check if Markdown sources are properly formatted
|
||||||
# This can be initiated with `nix build .#checks.<system>.md-fmt`
|
# This can be initiated with `nix build .#checks.<system>.md-fmt`
|
||||||
# or with `nix flake check`
|
# or with `nix flake check`
|
||||||
md-fmt = pkgs.runCommand "md-fmt-check" {nativeBuildInputs = [pkgs.deno];} ''
|
md-fmt =
|
||||||
deno fmt --check ${self} --ext md
|
pkgs.runCommand "md-fmt-check" {
|
||||||
touch $out
|
src = self;
|
||||||
'';
|
nativeBuildInputs = [pkgs.deno pkgs.fd];
|
||||||
|
} ''
|
||||||
|
cd "$src"
|
||||||
|
fd -t f -e md -x deno fmt --check '{}'
|
||||||
|
touch $out
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue