mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 02:52:37 +00:00 
			
		
		
		
	feat: add scrollbar visual
This commit is contained in:
		
					parent
					
						
							
								7e69203390
							
						
					
				
			
			
				commit
				
					
						5d02e5d2e3
					
				
			
		
					 1 changed files with 24 additions and 0 deletions
				
			
		|  | @ -24,6 +24,11 @@ in { | ||||||
|       description = "enable vscode-like pictograms for lsp [lspkind]"; |       description = "enable vscode-like pictograms for lsp [lspkind]"; | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|  |     scrollBar.enable = mkOption { | ||||||
|  |       type = types.bool; | ||||||
|  |       description = "enable scrollbar [scrollbar.nvim]"; | ||||||
|  |     }; | ||||||
|  | 
 | ||||||
|     cursorWordline = { |     cursorWordline = { | ||||||
|       enable = mkOption { |       enable = mkOption { | ||||||
|         type = types.bool; |         type = types.bool; | ||||||
|  | @ -88,6 +93,11 @@ in { | ||||||
|           then "indent-blankline" |           then "indent-blankline" | ||||||
|           else null |           else null | ||||||
|         ) |         ) | ||||||
|  |         ( | ||||||
|  |           if cfg.scrollBar.enable | ||||||
|  |           then "scrollbar-nvim" | ||||||
|  |           else null | ||||||
|  |         ) | ||||||
|       ]; |       ]; | ||||||
| 
 | 
 | ||||||
|       vim.luaConfigRC.visuals = nvim.dag.entryAnywhere '' |       vim.luaConfigRC.visuals = nvim.dag.entryAnywhere '' | ||||||
|  | @ -130,6 +140,20 @@ in { | ||||||
|           then "vim.g.cursorline_timeout = ${toString cfg.cursorWordline.lineTimeout}" |           then "vim.g.cursorline_timeout = ${toString cfg.cursorWordline.lineTimeout}" | ||||||
|           else "" |           else "" | ||||||
|         } |         } | ||||||
|  | 
 | ||||||
|  |         ${ | ||||||
|  |           if cfg.scrollBar.enable | ||||||
|  |           then "require('scrollbar').setup{ | ||||||
|  |             excluded_filetypes = { | ||||||
|  |               'prompt', | ||||||
|  |               'TelescopePrompt', | ||||||
|  |               'noice', | ||||||
|  |               'NvimTree', | ||||||
|  |               'alpha' | ||||||
|  |             }, | ||||||
|  |           }" | ||||||
|  |           else "" | ||||||
|  |         } | ||||||
|       ''; |       ''; | ||||||
|     }; |     }; | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue