mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 02:52:37 +00:00 
			
		
		
		
	Merge pull request #176 from ksonj/case-sensitivity
basic: declare option to set smartcase or ignorecase
This commit is contained in:
		
				commit
				
					
						e498331ce7
					
				
			
		
					 2 changed files with 18 additions and 0 deletions
				
			
		|  | @ -146,6 +146,18 @@ in { | ||||||
|       ${optionalString (cfg.leaderKey != null) '' |       ${optionalString (cfg.leaderKey != null) '' | ||||||
|         let mapleader = "${toString cfg.leaderKey}" |         let mapleader = "${toString cfg.leaderKey}" | ||||||
|       ''} |       ''} | ||||||
|  |       ${optionalString (cfg.searchCase == "ignore") '' | ||||||
|  |         set nosmartcase | ||||||
|  |         set ignorecase | ||||||
|  |       ''} | ||||||
|  |       ${optionalString (cfg.searchCase == "smart") '' | ||||||
|  |         set noignorecase | ||||||
|  |         set smartcase | ||||||
|  |       ''} | ||||||
|  |       ${optionalString (cfg.searchCase == "sensitive") '' | ||||||
|  |         set noignorecase | ||||||
|  |         set nosmartcase | ||||||
|  |       ''} | ||||||
|     ''; |     ''; | ||||||
|   }; |   }; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -178,5 +178,11 @@ with builtins; { | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|     enableLuaLoader = mkEnableOption "experimental Lua module loader to speed up the start up process"; |     enableLuaLoader = mkEnableOption "experimental Lua module loader to speed up the start up process"; | ||||||
|  | 
 | ||||||
|  |     searchCase = mkOption { | ||||||
|  |       type = types.enum ["ignore" "smart" "sensitive"]; | ||||||
|  |       default = "sensitive"; | ||||||
|  |       description = "Set the case sensitivity of search"; | ||||||
|  |     }; | ||||||
|   }; |   }; | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 GitHub
					GitHub