plugins/telescope: add batPackage

This commit is contained in:
Austin Horstman 2024-08-30 20:03:17 -05:00
parent 93b8b75ff3
commit 873d7b51a7
No known key found for this signature in database
2 changed files with 7 additions and 2 deletions

View file

@ -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

View file

@ -34,6 +34,7 @@
no-packages = {
plugins.telescope = {
enable = true;
batPackage = null;
iconsPackage = null;
};
};