Compare commits

..

No commits in common. "c7fe3c1818d01f71f2e1a0ec9b8e1c6a7e5c171b" and "516007a475b3d50fb06acc66b57980e1c51042f6" have entirely different histories.

3 changed files with 12 additions and 38 deletions

View file

@ -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 Neovim - The `setupOpts.mappings` options were also removed. Use the built-in
settings (nvf's {option}`vim.keymaps`) Neovim settings (nvf's {option}`vim.keymaps`)
## Changelog {#sec-release-0-9-changelog} ## Changelog {#sec-release-0-9-changelog}
@ -69,8 +69,7 @@
[jtliang24](https://github.com/jtliang24): [jtliang24](https://github.com/jtliang24):
- Updated nix language plugin to use pkgs.nixfmt instead of - Updated nix language plugin to use pkgs.nixfmt instead of pkgs.nixfmt-rfc-style
pkgs.nixfmt-rfc-style
[alfarel](https://github.com/alfarelcynthesis): [alfarel](https://github.com/alfarelcynthesis):
@ -129,5 +128,3 @@
[pyrox0](https://github.com/pyrox0): [pyrox0](https://github.com/pyrox0):
- Added [rumdl](https://github.com/rvben/rumdl) support to `languages.markdown` - Added [rumdl](https://github.com/rvben/rumdl) support to `languages.markdown`
- Added [sqruff](https://github.com/quarylabs/sqruff) support to `languages.sql`

View file

@ -91,27 +91,16 @@
# 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 = nix-fmt = pkgs.runCommand "nix-fmt-check" {nativeBuildInputs = [pkgs.alejandra];} ''
pkgs.runCommand "nix-fmt-check" alejandra --check ${self} < /dev/null
{
src = self;
nativeBuildInputs = [pkgs.alejandra pkgs.fd];
} ''
cd "$src"
fd -t f -e nix -x alejandra --check '{}'
touch $out 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 = md-fmt = pkgs.runCommand "md-fmt-check" {nativeBuildInputs = [pkgs.deno];} ''
pkgs.runCommand "md-fmt-check" { deno fmt --check ${self} --ext md
src = self;
nativeBuildInputs = [pkgs.deno pkgs.fd];
} ''
cd "$src"
fd -t f -e md -x deno fmt --check '{}'
touch $out touch $out
''; '';
}; };

View file

@ -15,7 +15,6 @@
cfg = config.vim.languages.sql; cfg = config.vim.languages.sql;
sqlfluffDefault = pkgs.sqlfluff; sqlfluffDefault = pkgs.sqlfluff;
sqruffDefault = pkgs.sqruff;
defaultServers = ["sqls"]; defaultServers = ["sqls"];
servers = { servers = {
@ -40,10 +39,6 @@
command = getExe sqlfluffDefault; command = getExe sqlfluffDefault;
append_args = ["--dialect=${cfg.dialect}"]; append_args = ["--dialect=${cfg.dialect}"];
}; };
sqruff = {
command = getExe sqruffDefault;
append_args = ["--dialect=${cfg.dialect}"];
};
}; };
defaultDiagnosticsProvider = ["sqlfluff"]; defaultDiagnosticsProvider = ["sqlfluff"];
@ -55,13 +50,6 @@
args = ["lint" "--format=json" "--dialect=${cfg.dialect}"]; args = ["lint" "--format=json" "--dialect=${cfg.dialect}"];
}; };
}; };
sqruff = {
package = sqruffDefault;
config = {
cmd = getExe sqruffDefault;
args = ["lint" "--format=json" "--dialect=${cfg.dialect}" "-"];
};
};
}; };
in { in {
options.vim.languages.sql = { options.vim.languages.sql = {
@ -70,7 +58,7 @@ in {
dialect = mkOption { dialect = mkOption {
type = str; type = str;
default = "ansi"; default = "ansi";
description = "SQL dialect for formatters and diagnostics (if used)"; description = "SQL dialect for sqlfluff (if used)";
}; };
treesitter = { treesitter = {