mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-02 21:34:33 +02:00
perform some statix linting and fixes
This commit is contained in:
parent
eee375e97e
commit
efdcbe225f
57 changed files with 196 additions and 221 deletions
|
@ -44,9 +44,9 @@ in {
|
|||
};
|
||||
|
||||
config = let
|
||||
files = config.files;
|
||||
inherit (config) files;
|
||||
concatFilesOption = attr:
|
||||
lib.flatten (lib.mapAttrsToList (_: file: builtins.getAttr attr file) files);
|
||||
lib.flatten (lib.mapAttrsToList (_: builtins.getAttr attr) files);
|
||||
in {
|
||||
# Each file can declare plugins/packages/warnings/assertions
|
||||
extraPlugins = concatFilesOption "extraPlugins";
|
||||
|
@ -59,7 +59,7 @@ in {
|
|||
name = "nixvim-config";
|
||||
paths =
|
||||
(lib.mapAttrsToList (_: file: file.plugin) files)
|
||||
++ (lib.mapAttrsToList (path: content: pkgs.writeTextDir path content) config.extraFiles);
|
||||
++ (lib.mapAttrsToList pkgs.writeTextDir config.extraFiles);
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue