mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-11-03 20:22:21 +00:00 
			
		
		
		
	fix: override cursorlineopt=number via autocmds
		
	This commit is contained in:
		
					parent
					
						
							
								bae1ef363a
							
						
					
				
			
			
				commit
				
					
						d2fab111de
					
				
			
		
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -75,9 +75,13 @@ in {
 | 
				
			||||||
      set shortmess+=c
 | 
					      set shortmess+=c
 | 
				
			||||||
      set tm=${toString cfg.mapTimeout}
 | 
					      set tm=${toString cfg.mapTimeout}
 | 
				
			||||||
      set hidden
 | 
					      set hidden
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      ${optionalString cfg.theme.transparent ''
 | 
					      ${optionalString cfg.theme.transparent ''
 | 
				
			||||||
        " this needs to be set if the theme is transparent
 | 
					        " this needs to be set if the theme is transparent
 | 
				
			||||||
        set cursorlineopt=number
 | 
					        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 ''
 | 
					      ${optionalString cfg.splitBelow ''
 | 
				
			||||||
        set splitbelow
 | 
					        set splitbelow
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue