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 ]; maintainers = [ maintainers.GaetanLepage ];
extraPackages = [ pkgs.bat ];
# TODO introduced 2024-03-24: remove 2024-05-24 # TODO introduced 2024-03-24: remove 2024-05-24
deprecateExtraOptions = true; deprecateExtraOptions = true;
optionsRenamedToSettings = [ "defaults" ]; optionsRenamedToSettings = [ "defaults" ];
@ -95,6 +93,10 @@ lib.nixvim.neovim-plugin.mkNeovimPlugin {
"vimPlugins" "vimPlugins"
"nvim-web-devicons" "nvim-web-devicons"
] { nullable = true; }; ] { nullable = true; };
batPackage = lib.mkPackageOption pkgs "bat" {
nullable = true;
};
}; };
callSetup = false; callSetup = false;
@ -105,6 +107,8 @@ lib.nixvim.neovim-plugin.mkNeovimPlugin {
let $BAT_THEME = '${cfg.highlightTheme}' let $BAT_THEME = '${cfg.highlightTheme}'
''; '';
extraPackages = [ cfg.batPackage ];
keymaps = mapAttrsToList ( keymaps = mapAttrsToList (
key: mapping: key: mapping:
let let

View file

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