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;
|
cfg = config.dependencies;
|
||||||
|
|
||||||
packages = {
|
packages = {
|
||||||
|
bat.default = "bat";
|
||||||
ctags.default = "ctags";
|
ctags.default = "ctags";
|
||||||
curl.default = "curl";
|
curl.default = "curl";
|
||||||
direnv.default = "direnv";
|
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>`."
|
"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 = {
|
extraOptions = {
|
||||||
|
@ -88,10 +94,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
added to `extraPlugins`.
|
added to `extraPlugins`.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
batPackage = lib.mkPackageOption pkgs "bat" {
|
|
||||||
nullable = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
callSetup = false;
|
callSetup = false;
|
||||||
|
@ -109,7 +111,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
let $BAT_THEME = '${cfg.highlightTheme}'
|
let $BAT_THEME = '${cfg.highlightTheme}'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
extraPackages = [ cfg.batPackage ];
|
dependencies.bat.enable = lib.mkDefault true;
|
||||||
|
|
||||||
keymaps = mapAttrsToList (
|
keymaps = mapAttrsToList (
|
||||||
key: mapping:
|
key: mapping:
|
||||||
|
|
|
@ -35,11 +35,11 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
no-packages = {
|
no-packages = {
|
||||||
plugins.web-devicons.enable = false;
|
plugins = {
|
||||||
plugins.telescope = {
|
web-devicons.enable = false;
|
||||||
enable = true;
|
telescope.enable = true;
|
||||||
batPackage = null;
|
|
||||||
};
|
};
|
||||||
|
dependencies.bat.enable = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
mini-icons = {
|
mini-icons = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue