mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 11:02:37 +00:00 
			
		
		
		
	feat: cursorlineopt config option
This commit is contained in:
		
					parent
					
						
							
								0a7f9865f1
							
						
					
				
			
			
				commit
				
					
						4f8a035d82
					
				
			
		
					 2 changed files with 7 additions and 7 deletions
				
			
		|  | @ -75,14 +75,8 @@ in { | |||
|       set shortmess+=c | ||||
|       set tm=${toString cfg.mapTimeout} | ||||
|       set hidden | ||||
|       set cursorlineopt=${toString cfg.cursorlineOpt} | ||||
| 
 | ||||
|       ${optionalString cfg.theme.transparent '' | ||||
|         " this needs to be set if the theme is transparent | ||||
|         set cursorlineopt=number | ||||
|         " override when vim is opened or a new buffer is entered | ||||
|         autocmd VimEnter * setlocal cursorlineopt=number | ||||
|         autocmd BufWinEnter * setlocal cursorlineopt=number | ||||
|       ''} | ||||
|       ${optionalString cfg.splitBelow '' | ||||
|         set splitbelow | ||||
|       ''} | ||||
|  |  | |||
|  | @ -145,6 +145,12 @@ with builtins; { | |||
|       description = "Follow editorconfig rules in current directory"; | ||||
|     }; | ||||
| 
 | ||||
|     cursorlineOpt = mkOption { | ||||
|       type = types.enum ["line" "screenline" "number" "both"]; | ||||
|       default = "line"; | ||||
|       description = "Highlight the text line of the cursor with CursorLine hl-CursorLine"; | ||||
|     }; | ||||
| 
 | ||||
|     enableLuaLoader = mkEnableOption "Enable the experimental Lua module loader to speed up the start up process"; | ||||
|   }; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 NotAShelf
				NotAShelf