mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
31 lines
692 B
Nix
31 lines
692 B
Nix
|
{
|
||
|
perSystem =
|
||
|
{
|
||
|
config,
|
||
|
lib,
|
||
|
inputs',
|
||
|
system,
|
||
|
pkgs,
|
||
|
...
|
||
|
}:
|
||
|
{
|
||
|
packages.list-plugins = pkgs.writers.writePython3Bin "list-plugins" {
|
||
|
# Disable flake8 checks that are incompatible with the ruff ones
|
||
|
flakeIgnore = [
|
||
|
# line too long
|
||
|
"E501"
|
||
|
# line break before binary operator
|
||
|
"W503"
|
||
|
];
|
||
|
} (builtins.readFile ./list-plugins.py);
|
||
|
|
||
|
devshells.default.commands = [
|
||
|
{
|
||
|
name = "list-plugins";
|
||
|
command = ''${lib.getExe config.packages.list-plugins} "$@"'';
|
||
|
help = "List plugins and get implementation infos";
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
}
|