mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 11:02:37 +00:00 
			
		
		
		
	feat: add debugMode
This commit is contained in:
		
					parent
					
						
							
								16b1f7fe5e
							
						
					
				
			
			
				commit
				
					
						f491d49c15
					
				
			
		
					 3 changed files with 33 additions and 3 deletions
				
			
		
							
								
								
									
										16
									
								
								extra.nix
									
										
									
									
									
								
							
							
						
						
									
										16
									
								
								extra.nix
									
										
									
									
									
								
							|  | @ -18,6 +18,11 @@ inputs: let | ||||||
|       vim = { |       vim = { | ||||||
|         viAlias = true; |         viAlias = true; | ||||||
|         vimAlias = true; |         vimAlias = true; | ||||||
|  |         debugMode = { | ||||||
|  |           enable = true; | ||||||
|  |           level = 20; | ||||||
|  |           logFile = "/tmp/nvim.log"; | ||||||
|  |         }; | ||||||
|       }; |       }; | ||||||
| 
 | 
 | ||||||
|       vim.lsp = { |       vim.lsp = { | ||||||
|  | @ -61,9 +66,14 @@ inputs: let | ||||||
|         }; |         }; | ||||||
|       }; |       }; | ||||||
| 
 | 
 | ||||||
|       vim.statusline.lualine = { |       vim.statusline = { | ||||||
|         enable = true; |         lualine = { | ||||||
|         theme = "catppuccin"; |           enable = false; | ||||||
|  |           theme = "catppuccin"; | ||||||
|  |         }; | ||||||
|  |         heirline = { | ||||||
|  |           enable = true; | ||||||
|  |         }; | ||||||
|       }; |       }; | ||||||
| 
 | 
 | ||||||
|       vim.theme = { |       vim.theme = { | ||||||
|  |  | ||||||
|  | @ -28,6 +28,12 @@ in { | ||||||
|     vim.nnoremap = mkIf cfg.mapLeaderSpace {"<space>" = "<nop>";}; |     vim.nnoremap = mkIf cfg.mapLeaderSpace {"<space>" = "<nop>";}; | ||||||
| 
 | 
 | ||||||
|     vim.configRC.basic = nvim.dag.entryAfter ["globalsScript"] '' |     vim.configRC.basic = nvim.dag.entryAfter ["globalsScript"] '' | ||||||
|  |       " Debug mode settings | ||||||
|  |       ${optionalString cfg.debugMode.enable '' | ||||||
|  |         set verbose=${toString cfg.debugMode.level} | ||||||
|  |         set verbosefile=${cfg.debugMode.logFile} | ||||||
|  |       ''} | ||||||
|  | 
 | ||||||
|       " Settings that are set for everything |       " Settings that are set for everything | ||||||
|       set encoding=utf-8 |       set encoding=utf-8 | ||||||
|       set mouse=${cfg.mouseSupport} |       set mouse=${cfg.mouseSupport} | ||||||
|  |  | ||||||
|  | @ -9,6 +9,20 @@ with builtins; let | ||||||
|   cfg = config.vim; |   cfg = config.vim; | ||||||
| in { | in { | ||||||
|   options.vim = { |   options.vim = { | ||||||
|  |     debugMode = { | ||||||
|  |       enable = mkEnableOption "Enable debug mode"; | ||||||
|  |       level = mkOption { | ||||||
|  |         type = types.int; | ||||||
|  |         default = 20; | ||||||
|  |         description = "Set the debug level"; | ||||||
|  |       }; | ||||||
|  |       logFile = mkOption { | ||||||
|  |         type = types.path; | ||||||
|  |         default = "/tmp/nvim.log"; | ||||||
|  |         description = "Set the log file"; | ||||||
|  |       }; | ||||||
|  |     }; | ||||||
|  | 
 | ||||||
|     colourTerm = mkOption { |     colourTerm = mkOption { | ||||||
|       type = types.bool; |       type = types.bool; | ||||||
|       default = true; |       default = true; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 NotAShelf
				NotAShelf