mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-09 12:06:05 +01:00
ci: add generation script for conform-nvim
Signed-off-by: saygo-png <saygo.mail@proton.me>
This commit is contained in:
parent
3706fd8112
commit
bcbb109e09
3 changed files with 15 additions and 0 deletions
13
ci/conform-nvim.nix
Normal file
13
ci/conform-nvim.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
vimPlugins,
|
||||||
|
lib,
|
||||||
|
writeText,
|
||||||
|
}:
|
||||||
|
lib.pipe "${vimPlugins.conform-nvim}/lua/conform/formatters" [
|
||||||
|
builtins.readDir
|
||||||
|
builtins.attrNames
|
||||||
|
(builtins.filter (lib.hasSuffix ".lua"))
|
||||||
|
(map (lib.removeSuffix ".lua"))
|
||||||
|
builtins.toJSON
|
||||||
|
(writeText "conform-formatters")
|
||||||
|
]
|
||||||
|
|
@ -19,5 +19,6 @@ lib.fix (self: {
|
||||||
none-ls-builtins = pkgs.callPackage ./none-ls.nix { };
|
none-ls-builtins = pkgs.callPackage ./none-ls.nix { };
|
||||||
rust-analyzer-options = pkgs.callPackage ./rust-analyzer { };
|
rust-analyzer-options = pkgs.callPackage ./rust-analyzer { };
|
||||||
lspconfig-servers = pkgs.callPackage ./nvim-lspconfig { };
|
lspconfig-servers = pkgs.callPackage ./nvim-lspconfig { };
|
||||||
|
conform-formatters = pkgs.callPackage ./conform-nvim.nix { };
|
||||||
version-info = pkgs.callPackage ./version-info { };
|
version-info = pkgs.callPackage ./version-info { };
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,7 @@ writeShellApplication {
|
||||||
generate_nix "${efmls-configs-sources}" "efmls-configs"
|
generate_nix "${efmls-configs-sources}" "efmls-configs"
|
||||||
generate_nix "${none-ls-builtins}" "none-ls"
|
generate_nix "${none-ls-builtins}" "none-ls"
|
||||||
|
|
||||||
|
generate_json "${conform-formatters}" "conform-formatters"
|
||||||
generate_json "${lspconfig-servers}" "lspconfig-servers"
|
generate_json "${lspconfig-servers}" "lspconfig-servers"
|
||||||
|
|
||||||
if [ -n "$commit" ]; then
|
if [ -n "$commit" ]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue