feat: apply new module format to minimap plugins

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

View file

@ -1,21 +0,0 @@
{
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";
};
config = mkIf cfg.enable {
vim.startPlugins = [
pkgs.code-minimap
"minimap-vim"
];
};
}