mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-11-03 20:22:21 +00:00 
			
		
		
		
	
		
			Some checks are pending
		
		
	
	Set up binary cache / cachix (default) (push) Waiting to run
				
			Set up binary cache / cachix (maximal) (push) Waiting to run
				
			Set up binary cache / cachix (nix) (push) Waiting to run
				
			Validate flake & check documentation / Validate Flake Documentation (docs) (push) Waiting to run
				
			Validate flake & check documentation / Validate Flake Documentation (docs-html) (push) Waiting to run
				
			Validate flake & check documentation / Validate Flake Documentation (docs-json) (push) Waiting to run
				
			Validate flake & check documentation / Validate Flake Documentation (docs-manpages) (push) Waiting to run
				
			Validate flake & check documentation / Validate hyperlinks in documentation sources (push) Waiting to run
				
			Validate flake & check formatting / Validate Flake (push) Waiting to run
				
			Validate flake & check formatting / Formatting via Alejandra (push) Waiting to run
				
			Build and deploy documentation / Check latest commit (push) Waiting to run
				
			Build and deploy documentation / publish (push) Blocked by required conditions
				
			Check for typos in the source tree / check-typos (push) Waiting to run
				
			* git/gitsigns: add `setupOpts` module option for user-specified setup table * docs: update v0.8 release notes
		
			
				
	
	
		
			43 lines
		
	
	
	
		
			1.6 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
	
		
			1.6 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  config,
 | 
						|
  lib,
 | 
						|
  ...
 | 
						|
}: let
 | 
						|
  inherit (lib.options) mkEnableOption;
 | 
						|
  inherit (lib.modules) mkRenamedOptionModule;
 | 
						|
  inherit (lib.nvim.binds) mkMappingOption;
 | 
						|
  inherit (lib.nvim.types) mkPluginSetupOption;
 | 
						|
in {
 | 
						|
  imports = [
 | 
						|
    (mkRenamedOptionModule ["vim" "git" "gitsigns" "codeActions" "vim" "gitsigns" "codeActions"] ["vim" "git" "gitsigns" "codeActions" "enable"])
 | 
						|
  ];
 | 
						|
 | 
						|
  options.vim.git.gitsigns = {
 | 
						|
    enable = mkEnableOption "gitsigns" // {default = config.vim.git.enable;};
 | 
						|
    setupOpts = mkPluginSetupOption "gitsigns" {};
 | 
						|
 | 
						|
    codeActions.enable = mkEnableOption "gitsigns codeactions through null-ls";
 | 
						|
 | 
						|
    mappings = {
 | 
						|
      nextHunk = mkMappingOption "Next hunk [Gitsigns]" "]c";
 | 
						|
      previousHunk = mkMappingOption "Previous hunk [Gitsigns]" "[c";
 | 
						|
 | 
						|
      stageHunk = mkMappingOption "Stage hunk [Gitsigns]" "<leader>hs";
 | 
						|
      undoStageHunk = mkMappingOption "Undo stage hunk [Gitsigns]" "<leader>hu";
 | 
						|
      resetHunk = mkMappingOption "Reset hunk [Gitsigns]" "<leader>hr";
 | 
						|
 | 
						|
      stageBuffer = mkMappingOption "Stage buffer [Gitsigns]" "<leader>hS";
 | 
						|
      resetBuffer = mkMappingOption "Reset buffer [Gitsigns]" "<leader>hR";
 | 
						|
 | 
						|
      previewHunk = mkMappingOption "Preview hunk [Gitsigns]" "<leader>hP";
 | 
						|
 | 
						|
      blameLine = mkMappingOption "Blame line [Gitsigns]" "<leader>hb";
 | 
						|
      toggleBlame = mkMappingOption "Toggle blame [Gitsigns]" "<leader>tb";
 | 
						|
 | 
						|
      diffThis = mkMappingOption "Diff this [Gitsigns]" "<leader>hd";
 | 
						|
      diffProject = mkMappingOption "Diff project [Gitsigns]" "<leader>hD";
 | 
						|
 | 
						|
      toggleDeleted = mkMappingOption "Toggle deleted [Gitsigns]" "<leader>td";
 | 
						|
    };
 | 
						|
  };
 | 
						|
}
 |