mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-04-15 09:08:37 +00:00
23 lines
414 B
Nix
23 lines
414 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib.modules) mkIf;
|
|
|
|
cfg = config.vim.git.gitlinker-nvim;
|
|
in {
|
|
config = mkIf cfg.enable {
|
|
vim = {
|
|
startPlugins = ["gitlinker-nvim"];
|
|
lazy.plugins = {
|
|
"gitlinker-nvim" = {
|
|
package = "gitlinker-nvim";
|
|
setupModule = "gitlinker";
|
|
inherit (cfg) setupOpts;
|
|
cmd = ["GitLink"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|