mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-11-04 04:32:21 +00:00 
			
		
		
		
	lsp/lspsaga: update source; lazyload; remove keybinds (#724)
	
		
			
	
		
	
	
		
	
		
			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 (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
				
			
		
		
	
	
		
	
		
			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 (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
				
			* pins: point lspsaga to new source Stop using the fork, the author is back. * pins: point lspsaga to new source Stop using the fork, the author is back.
This commit is contained in:
		
					parent
					
						
							
								a297acc368
							
						
					
				
			
			
				commit
				
					
						e473a4ddb1
					
				
			
		
					 4 changed files with 36 additions and 60 deletions
				
			
		| 
						 | 
				
			
			@ -3,10 +3,21 @@
 | 
			
		|||
  lib,
 | 
			
		||||
  ...
 | 
			
		||||
}: let
 | 
			
		||||
  inherit (lib.modules) mkRemovedOptionModule;
 | 
			
		||||
  inherit (lib.options) mkOption mkEnableOption;
 | 
			
		||||
  inherit (lib.nvim.binds) mkMappingOption;
 | 
			
		||||
  inherit (lib.nvim.types) borderType mkPluginSetupOption;
 | 
			
		||||
in {
 | 
			
		||||
  imports = [
 | 
			
		||||
    (mkRemovedOptionModule ["vim" "lsp" "lspsaga" "mappings"] ''
 | 
			
		||||
      Lspsaga mappings have been removed from nvf, as the original author has made
 | 
			
		||||
      very drastic changes to the API after taking back ownership, and the fork we
 | 
			
		||||
      used is now archived. Please refer to Lspsaga documentation to add keybinds
 | 
			
		||||
      for functionality you have used.
 | 
			
		||||
 | 
			
		||||
      <https://nvimdev.github.io/lspsaga>
 | 
			
		||||
    '')
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  options.vim.lsp.lspsaga = {
 | 
			
		||||
    enable = mkEnableOption "LSP Saga";
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -17,26 +28,5 @@ in {
 | 
			
		|||
        description = "Border type, see {command}`:help nvim_open_win`";
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    mappings = {
 | 
			
		||||
      lspFinder = mkMappingOption "LSP Finder [LSPSaga]" "<leader>lf";
 | 
			
		||||
      renderHoveredDoc = mkMappingOption "Rendered hovered docs [LSPSaga]" "<leader>lh";
 | 
			
		||||
 | 
			
		||||
      smartScrollUp = mkMappingOption "Smart scroll up [LSPSaga]" "<C-f>";
 | 
			
		||||
      smartScrollDown = mkMappingOption "Smart scroll up [LSPSaga]" "<C-b>";
 | 
			
		||||
 | 
			
		||||
      rename = mkMappingOption "Rename [LSPSaga]" "<leader>lr";
 | 
			
		||||
      previewDefinition = mkMappingOption "Preview definition [LSPSaga]" "<leader>ld";
 | 
			
		||||
 | 
			
		||||
      showLineDiagnostics = mkMappingOption "Show line diagnostics [LSPSaga]" "<leader>ll";
 | 
			
		||||
      showCursorDiagnostics = mkMappingOption "Show cursor diagnostics [LSPSaga]" "<leader>lc";
 | 
			
		||||
 | 
			
		||||
      nextDiagnostic = mkMappingOption "Next diagnostic [LSPSaga]" "<leader>ln";
 | 
			
		||||
      previousDiagnostic = mkMappingOption "Previous diagnostic [LSPSaga]" "<leader>lp";
 | 
			
		||||
 | 
			
		||||
      codeAction = mkMappingOption "Code action [LSPSaga]" "<leader>ca";
 | 
			
		||||
 | 
			
		||||
      signatureHelp = mkMappingOption "Signature help [LSPSaga]" "<leader>ls";
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue