mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-14 06:38:44 +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 {
|
in {
|
||||||
options.plugins.gitsigns = {
|
options.plugins.gitsigns = {
|
||||||
enable = mkEnableOption "Enable gitsigns plugin";
|
enable = mkEnableOption "Enable gitsigns plugin";
|
||||||
|
package = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
default = pkgs.vimPlugins.gitsigns-nvim;
|
||||||
|
description = "Plugin to use for gitsigns";
|
||||||
|
};
|
||||||
signs = {
|
signs = {
|
||||||
add = signOptions {
|
add = signOptions {
|
||||||
hl = "GitSignsAdd";
|
hl = "GitSignsAdd";
|
||||||
|
@ -363,7 +368,7 @@ in {
|
||||||
in
|
in
|
||||||
mkIf cfg.enable {
|
mkIf cfg.enable {
|
||||||
extraPlugins = with pkgs.vimPlugins; [
|
extraPlugins = with pkgs.vimPlugins; [
|
||||||
gitsigns-nvim
|
cfg.package
|
||||||
];
|
];
|
||||||
extraConfigLua = let
|
extraConfigLua = let
|
||||||
luaFnOrStrToObj = val:
|
luaFnOrStrToObj = val:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue