mirror of
https://github.com/nix-community/nixvim.git
synced 2026-08-24 10:14:03 -05:00
ci: generate nvim-lint linter list
This commit is contained in:
@@ -19,5 +19,6 @@ lib.fix (self: {
|
||||
none-ls-builtins = pkgs.callPackage ./none-ls.nix { };
|
||||
lspconfig-servers = pkgs.callPackage ./nvim-lspconfig { };
|
||||
conform-formatters = pkgs.callPackage ./conform-nvim.nix { };
|
||||
lint-linters = pkgs.callPackage ./nvim-lint.nix { };
|
||||
version-info = pkgs.callPackage ./version-info { };
|
||||
})
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
none-ls-builtins,
|
||||
lspconfig-servers,
|
||||
conform-formatters,
|
||||
lint-linters,
|
||||
nixfmt,
|
||||
prettier,
|
||||
}:
|
||||
@@ -44,6 +45,7 @@ writeShellApplication {
|
||||
generate_json "${efmls-configs-sources}"
|
||||
generate_json "${none-ls-builtins}"
|
||||
generate_json "${conform-formatters}"
|
||||
generate_json "${lint-linters}"
|
||||
generate_json "${lspconfig-servers}"
|
||||
generate_json "${lspconfig-servers.unsupported}"
|
||||
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
vimPlugins,
|
||||
runCommand,
|
||||
jq,
|
||||
}:
|
||||
runCommand "lint-linters.json"
|
||||
{
|
||||
src = vimPlugins.nvim-lint;
|
||||
nativeBuildInputs = [ jq ];
|
||||
}
|
||||
''
|
||||
for file in "$src"/lua/lint/linters/*.lua
|
||||
do
|
||||
name=''${file##*/}
|
||||
printf '%s\n' "''${name%.lua}"
|
||||
done \
|
||||
| LC_ALL=C sort \
|
||||
| jq -R . \
|
||||
| jq -s . > "$out"
|
||||
''
|
||||
Reference in New Issue
Block a user