feat: apply new module format to UI plugins

This commit is contained in:
NotAShelf 2023-02-27 22:28:28 +03:00
parent 211344d65c
commit 848fc5f57c
No known key found for this signature in database
GPG key ID: 5B5C8895F28445F1
4 changed files with 21 additions and 5 deletions

View file

@ -1,5 +1,5 @@
_: {
imports = [
./noice.nix
./noice
];
}

View file

@ -8,10 +8,6 @@ with lib;
with builtins; let
cfg = config.vim.ui.noice;
in {
options.vim.ui.noice = {
enable = mkEnableOption "noice-nvim";
};
config = mkIf cfg.enable {
vim.startPlugins = [
"noice-nvim"

View file

@ -0,0 +1,6 @@
_: {
imports = [
./noice.nix
./config.nix
];
}

View file

@ -0,0 +1,14 @@
{
pkgs,
config,
lib,
...
}:
with lib;
with builtins; let
cfg = config.vim.ui.noice;
in {
options.vim.ui.noice = {
enable = mkEnableOption "noice-nvim";
};
}