feat: apply new module format to minimap plugins

This commit is contained in:
NotAShelf 2023-02-27 22:29:01 +03:00
parent f081bb916f
commit 7149c92d1e
No known key found for this signature in database
GPG Key ID: 5B5C8895F28445F1
7 changed files with 42 additions and 10 deletions

View File

@ -0,0 +1,14 @@
{
pkgs,
config,
lib,
...
}:
with lib;
with builtins; let
cfg = config.vim.minimap.codewindow;
in {
options.vim.minimap.codewindow = {
enable = mkEnableOption "Enable minimap-vim plugin";
};
}

View File

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

View File

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

View File

@ -5,7 +5,7 @@
... ...
}: { }: {
imports = [ imports = [
./minimap-vim.nix ./minimap-vim
./codewindow.nix ./codewindow
]; ];
} }

View File

@ -8,10 +8,6 @@ with lib;
with builtins; let with builtins; let
cfg = config.vim.minimap.minimap-vim; cfg = config.vim.minimap.minimap-vim;
in { in {
options.vim.minimap.minimap-vim = {
enable = mkEnableOption "Enable minimap-vim plugin";
};
config = mkIf cfg.enable { config = mkIf cfg.enable {
vim.startPlugins = [ vim.startPlugins = [
pkgs.code-minimap pkgs.code-minimap

View File

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

View File

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