mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
plugins/telescope: add batPackage
This commit is contained in:
parent
93b8b75ff3
commit
873d7b51a7
2 changed files with 7 additions and 2 deletions
|
@ -21,8 +21,6 @@ lib.nixvim.neovim-plugin.mkNeovimPlugin {
|
|||
|
||||
maintainers = [ maintainers.GaetanLepage ];
|
||||
|
||||
extraPackages = [ pkgs.bat ];
|
||||
|
||||
# TODO introduced 2024-03-24: remove 2024-05-24
|
||||
deprecateExtraOptions = true;
|
||||
optionsRenamedToSettings = [ "defaults" ];
|
||||
|
@ -95,6 +93,10 @@ lib.nixvim.neovim-plugin.mkNeovimPlugin {
|
|||
"vimPlugins"
|
||||
"nvim-web-devicons"
|
||||
] { nullable = true; };
|
||||
|
||||
batPackage = lib.mkPackageOption pkgs "bat" {
|
||||
nullable = true;
|
||||
};
|
||||
};
|
||||
|
||||
callSetup = false;
|
||||
|
@ -105,6 +107,8 @@ lib.nixvim.neovim-plugin.mkNeovimPlugin {
|
|||
let $BAT_THEME = '${cfg.highlightTheme}'
|
||||
'';
|
||||
|
||||
extraPackages = [ cfg.batPackage ];
|
||||
|
||||
keymaps = mapAttrsToList (
|
||||
key: mapping:
|
||||
let
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
no-packages = {
|
||||
plugins.telescope = {
|
||||
enable = true;
|
||||
batPackage = null;
|
||||
iconsPackage = null;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue