mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 02:52:37 +00:00 
			
		
		
		
	feat: add more configuration options for modes.nvim
This commit is contained in:
		
					parent
					
						
							
								5300f9c253
							
						
					
				
			
			
				commit
				
					
						b8d2c23eaf
					
				
			
		
					 2 changed files with 31 additions and 3 deletions
				
			
		|  | @ -1,5 +1,4 @@ | |||
| { | ||||
|   pkgs, | ||||
|   config, | ||||
|   lib, | ||||
|   ... | ||||
|  | @ -15,7 +14,13 @@ in { | |||
| 
 | ||||
|     vim.luaConfigRC.modes-nvim = nvim.dag.entryAnywhere '' | ||||
|       require('modes').setup({ | ||||
|         set_cursorline = ${boolToString cfg.setCursorline}, -- looks ugly | ||||
|         set_cursorline = ${boolToString cfg.setCursorline}, | ||||
|         colors = { | ||||
|           copy = "${toString cfg.colors.copy}", | ||||
|           delete = "${toString cfg.colors.delete}", | ||||
|           insert = "${toString cfg.colors.insert}", | ||||
|           visual = "${toString cfg.colors.visual}", | ||||
|         }, | ||||
|       }) | ||||
|     ''; | ||||
|   }; | ||||
|  |  | |||
|  | @ -7,7 +7,30 @@ with builtins; { | |||
|     setCursorline = mkOption { | ||||
|       type = types.bool; | ||||
|       description = "Set a colored cursorline on current line"; | ||||
|       default = false; | ||||
|       default = false; # looks ugly, disabled by default | ||||
|     }; | ||||
| 
 | ||||
|     colors = { | ||||
|       copy = mkOption { | ||||
|         type = types.str; | ||||
|         description = "The #RRGGBB color code for the visual mode highlights"; | ||||
|         default = "#f5c359"; | ||||
|       }; | ||||
|       delete = mkOption { | ||||
|         type = types.str; | ||||
|         description = "The #RRGGBB color code for the visual mode highlights"; | ||||
|         default = "#c75c6a"; | ||||
|       }; | ||||
|       insert = mkOption { | ||||
|         type = types.str; | ||||
|         description = "The #RRGGBB color code for the visual mode highlights"; | ||||
|         default = "#78ccc5"; | ||||
|       }; | ||||
|       visual = mkOption { | ||||
|         type = types.str; | ||||
|         description = "The #RRGGBB color code for the visual mode highlights"; | ||||
|         default = "#9745be"; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 NotAShelf
				NotAShelf