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
cfg = config.vim.minimap.codewindow;
in {
options.vim.minimap.codewindow = {
enable = mkEnableOption "Enable minimap-vim plugin";
};
config = mkIf cfg.enable {
vim.startPlugins = [
"codewindow-nvim"

View file

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

View file

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

View file

@ -8,10 +8,6 @@ with lib;
with builtins; let
cfg = config.vim.minimap.minimap-vim;
in {
options.vim.minimap.minimap-vim = {
enable = mkEnableOption "Enable minimap-vim plugin";
};
config = mkIf cfg.enable {
vim.startPlugins = [
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";
};
}