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 ];
|
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
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
no-packages = {
|
no-packages = {
|
||||||
plugins.telescope = {
|
plugins.telescope = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
batPackage = null;
|
||||||
iconsPackage = null;
|
iconsPackage = null;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue