mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-23 04:05:06 +02:00
plugins: use mk{Neovim,Vim}Plugin's dependencies parameter
This commit is contained in:
parent
b66559d8ef
commit
1a64636839
49 changed files with 147 additions and 207 deletions
|
@ -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
|
||||
|
|
|
@ -12,6 +12,8 @@ mkExtension {
|
|||
extensionName = "live_grep_args";
|
||||
package = "telescope-live-grep-args-nvim";
|
||||
|
||||
dependencies = [ "ripgrep" ];
|
||||
|
||||
imports = [
|
||||
# TODO: added 2025-04-07, remove after 25.05
|
||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
||||
|
@ -67,8 +69,4 @@ mkExtension {
|
|||
};
|
||||
theme = "dropdown";
|
||||
};
|
||||
|
||||
extraConfig = {
|
||||
dependencies.ripgrep.enable = lib.mkDefault true;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue