mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-26 09:20:08 +00:00 
			
		
		
		
	Merge branch 'main' into v0.6
This commit is contained in:
		
				commit
				
					
						b397dcb430
					
				
			
		
					 5 changed files with 116 additions and 4 deletions
				
			
		
							
								
								
									
										54
									
								
								modules/utility/telescope/telescope.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										54
									
								
								modules/utility/telescope/telescope.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,54 @@ | |||
| { | ||||
|   pkgs, | ||||
|   lib, | ||||
|   ... | ||||
| }: let | ||||
|   inherit (lib) mkMappingOption mkEnableOption mkOption types; | ||||
| in { | ||||
|   options.vim.telescope = { | ||||
|     mappings = { | ||||
|       findProjects = mkMappingOption "Find files [Telescope]" "<leader>fp"; | ||||
| 
 | ||||
|       findFiles = mkMappingOption "Find files [Telescope]" "<leader>ff"; | ||||
|       liveGrep = mkMappingOption "Live grep [Telescope]" "<leader>fg"; | ||||
|       buffers = mkMappingOption "Buffers [Telescope]" "<leader>fb"; | ||||
|       helpTags = mkMappingOption "Help tags [Telescope]" "<leader>fh"; | ||||
|       open = mkMappingOption "Open [Telescope]" "<leader>ft"; | ||||
| 
 | ||||
|       gitCommits = mkMappingOption "Git commits [Telescope]" "<leader>fvcw"; | ||||
|       gitBufferCommits = mkMappingOption "Git buffer commits [Telescope]" "<leader>fvcb"; | ||||
|       gitBranches = mkMappingOption "Git branches [Telescope]" "<leader>fvb"; | ||||
|       gitStatus = mkMappingOption "Git status [Telescope]" "<leader>fvs"; | ||||
|       gitStash = mkMappingOption "Git stash [Telescope]" "<leader>fvx"; | ||||
| 
 | ||||
|       lspDocumentSymbols = mkMappingOption "LSP Document Symbols [Telescope]" "<leader>flsb"; | ||||
|       lspWorkspaceSymbols = mkMappingOption "LSP Workspace Symbols [Telescope]" "<leader>flsw"; | ||||
|       lspReferences = mkMappingOption "LSP References [Telescope]" "<leader>flr"; | ||||
|       lspImplementations = mkMappingOption "LSP Implementations [Telescope]" "<leader>fli"; | ||||
|       lspDefinitions = mkMappingOption "LSP Definitions [Telescope]" "<leader>flD"; | ||||
|       lspTypeDefinitions = mkMappingOption "LSP Type Definitions [Telescope]" "<leader>flt"; | ||||
|       diagnostics = mkMappingOption "Diagnostics [Telescope]" "<leader>fld"; | ||||
| 
 | ||||
|       treesitter = mkMappingOption "Treesitter [Telescope]" "<leader>fs"; | ||||
|     }; | ||||
| 
 | ||||
|     enable = mkEnableOption "telescope.nvim: multi-purpose search and picker utility"; | ||||
| 
 | ||||
|     vimgrep_arguments = mkOption { | ||||
|       description = "Arguments to use for the grep command"; | ||||
|       type = types.listOf types.str; | ||||
|       default = [ | ||||
|         "${pkgs.ripgrep}/bin/rg" | ||||
|         "--color=never" | ||||
|         "--no-heading" | ||||
|         "--with-filename" | ||||
|         "--line-number" | ||||
|         "--column" | ||||
|         "--smart-case" | ||||
|         "--hidden" | ||||
|         "--no-ignore" | ||||
|       ]; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
| 
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue