mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-26 15:06:45 +00:00
feat: apply new module format to UI plugins
This commit is contained in:
parent
211344d65c
commit
848fc5f57c
4 changed files with 21 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
_: {
|
||||
imports = [
|
||||
./noice.nix
|
||||
./noice
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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"
|
6
modules/ui/noice/default.nix
Normal file
6
modules/ui/noice/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
_: {
|
||||
imports = [
|
||||
./noice.nix
|
||||
./config.nix
|
||||
];
|
||||
}
|
14
modules/ui/noice/noice.nix
Normal file
14
modules/ui/noice/noice.nix
Normal 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";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue