mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
modules/dependencies: add bat
This commit is contained in:
parent
7d7dd1d21e
commit
ee60083622
3 changed files with 12 additions and 9 deletions
|
@ -8,6 +8,7 @@ let
|
|||
cfg = config.dependencies;
|
||||
|
||||
packages = {
|
||||
bat.default = "bat";
|
||||
ctags.default = "ctags";
|
||||
curl.default = "curl";
|
||||
direnv.default = "direnv";
|
||||
|
|
|
@ -37,6 +37,12 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
]
|
||||
"This option no longer has any effect now that the `plugin.telescope.keymaps` implementation uses `<cmd>`."
|
||||
)
|
||||
|
||||
# TODO: added 2025-04-07, remove after 25.05
|
||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
||||
plugin = "telescope";
|
||||
packageName = "bat";
|
||||
})
|
||||
];
|
||||
|
||||
extraOptions = {
|
||||
|
@ -88,10 +94,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
added to `extraPlugins`.
|
||||
'';
|
||||
};
|
||||
|
||||
batPackage = lib.mkPackageOption pkgs "bat" {
|
||||
nullable = true;
|
||||
};
|
||||
};
|
||||
|
||||
callSetup = false;
|
||||
|
@ -109,7 +111,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
let $BAT_THEME = '${cfg.highlightTheme}'
|
||||
'';
|
||||
|
||||
extraPackages = [ cfg.batPackage ];
|
||||
dependencies.bat.enable = lib.mkDefault true;
|
||||
|
||||
keymaps = mapAttrsToList (
|
||||
key: mapping:
|
||||
|
|
|
@ -35,11 +35,11 @@
|
|||
};
|
||||
|
||||
no-packages = {
|
||||
plugins.web-devicons.enable = false;
|
||||
plugins.telescope = {
|
||||
enable = true;
|
||||
batPackage = null;
|
||||
plugins = {
|
||||
web-devicons.enable = false;
|
||||
telescope.enable = true;
|
||||
};
|
||||
dependencies.bat.enable = false;
|
||||
};
|
||||
|
||||
mini-icons = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue