mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-21 11:14:40 +02:00
modules/dependencies: add git
This commit is contained in:
parent
30c4d00b72
commit
9abe8fd025
26 changed files with 179 additions and 149 deletions
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
|
@ -15,14 +14,8 @@ lib.nixvim.plugins.mkVimPlugin {
|
|||
|
||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||
|
||||
extraOptions = {
|
||||
gitPackage = lib.mkPackageOption pkgs "git" {
|
||||
nullable = true;
|
||||
};
|
||||
};
|
||||
|
||||
extraConfig = cfg: {
|
||||
extraPackages = [ cfg.gitPackage ];
|
||||
extraConfig = {
|
||||
dependencies.git.enable = lib.mkDefault true;
|
||||
};
|
||||
|
||||
# TODO: Added 2024-12-16; remove after 25.05
|
||||
|
@ -42,6 +35,13 @@ lib.nixvim.plugins.mkVimPlugin {
|
|||
"floatingWinOps"
|
||||
"popupContentMargins"
|
||||
];
|
||||
imports = [
|
||||
# TODO: added 2025-04-07, remove after 25.05
|
||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
||||
plugin = "gitmessenger";
|
||||
packageName = "git";
|
||||
})
|
||||
];
|
||||
|
||||
settingsOptions = {
|
||||
close_on_cursor_moved = defaultNullOpts.mkBool true ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue