mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-13 22:29:09 +02:00
gitsigns: package option
This commit is contained in:
parent
1d2899b79a
commit
09ed640a0f
1 changed files with 6 additions and 1 deletions
|
@ -44,6 +44,11 @@ with lib; let
|
|||
in {
|
||||
options.plugins.gitsigns = {
|
||||
enable = mkEnableOption "Enable gitsigns plugin";
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.vimPlugins.gitsigns-nvim;
|
||||
description = "Plugin to use for gitsigns";
|
||||
};
|
||||
signs = {
|
||||
add = signOptions {
|
||||
hl = "GitSignsAdd";
|
||||
|
@ -363,7 +368,7 @@ in {
|
|||
in
|
||||
mkIf cfg.enable {
|
||||
extraPlugins = with pkgs.vimPlugins; [
|
||||
gitsigns-nvim
|
||||
cfg.package
|
||||
];
|
||||
extraConfigLua = let
|
||||
luaFnOrStrToObj = val:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue