plugins: use mk{Neovim,Vim}Plugin's dependencies parameter

This commit is contained in:
Gaetan Lepage 2025-04-27 09:53:12 +02:00
parent b66559d8ef
commit 1a64636839
49 changed files with 147 additions and 207 deletions

View file

@ -1,8 +1,6 @@
{
lib,
config,
pkgs,
options,
...
}:
with lib;
@ -45,6 +43,8 @@ lib.nixvim.plugins.mkNeovimPlugin {
})
];
dependencies = [ "bat" ];
extraOptions = {
keymaps = mkOption {
type =
@ -111,8 +111,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
let $BAT_THEME = '${cfg.highlightTheme}'
'';
dependencies.bat.enable = lib.mkDefault true;
keymaps = mapAttrsToList (
key: mapping:
let