mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 02:52:37 +00:00 
			
		
		
		
	Added HardTime.nvim plugin and added vim.binds.hardtime.enable and .setupOpts options
This commit is contained in:
		
					parent
					
						
							
								bb3ca63d21
							
						
					
				
			
			
				commit
				
					
						ea90d2baf3
					
				
			
		
					 6 changed files with 54 additions and 0 deletions
				
			
		|  | @ -142,6 +142,9 @@ isMaximal: { | |||
|     binds = { | ||||
|       whichKey.enable = true; | ||||
|       cheatsheet.enable = true; | ||||
| 
 | ||||
|       # Remove this after test | ||||
|       hardtime.enable = true; | ||||
|     }; | ||||
| 
 | ||||
|     telescope.enable = true; | ||||
|  |  | |||
|  | @ -2,5 +2,6 @@ _: { | |||
|   imports = [ | ||||
|     ./which-key | ||||
|     ./cheatsheet | ||||
|     ./hardtime | ||||
|   ]; | ||||
| } | ||||
|  |  | |||
							
								
								
									
										21
									
								
								modules/plugins/utility/binds/hardtime/config.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								modules/plugins/utility/binds/hardtime/config.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,21 @@ | |||
| { | ||||
|   config, | ||||
|   lib, | ||||
|   ... | ||||
| }: let | ||||
|   inherit (lib.modules) mkIf; | ||||
|   inherit (lib.nvim.lua) toLuaObject; | ||||
|   inherit (lib.nvim.dag) entryAnywhere; | ||||
| 
 | ||||
|   cfg = config.vim.binds.hardtime; | ||||
| in { | ||||
|   config = mkIf cfg.enable { | ||||
|     vim = { | ||||
|       startPlugins = ["hardtime-nvim"]; | ||||
| 
 | ||||
|       pluginRC.hardtime = entryAnywhere '' | ||||
|         require("hardtime").setup (${toLuaObject cfg.setupOpts}) | ||||
|       ''; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										6
									
								
								modules/plugins/utility/binds/hardtime/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								modules/plugins/utility/binds/hardtime/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,6 @@ | |||
| { | ||||
|   imports = [ | ||||
|     ./hardtime.nix | ||||
|     ./config.nix | ||||
|   ]; | ||||
| } | ||||
							
								
								
									
										10
									
								
								modules/plugins/utility/binds/hardtime/hardtime.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								modules/plugins/utility/binds/hardtime/hardtime.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,10 @@ | |||
| {lib, ...}: let | ||||
|   inherit (lib.options) mkEnableOption; | ||||
|   inherit (lib.nvim.types) mkPluginSetupOption; | ||||
| in { | ||||
|   options.vim.binds.hardtime = { | ||||
|     enable = mkEnableOption "enable hardtime"; | ||||
| 
 | ||||
|     setupOpts = mkPluginSetupOption "hardtime-nvim" {}; | ||||
|   }; | ||||
| } | ||||
|  | @ -614,6 +614,19 @@ | |||
|       "url": "https://github.com/ellisonleao/gruvbox.nvim/archive/a933d8666dad9363dc6908ae72cfc832299c2f59.tar.gz", | ||||
|       "hash": "02r2h0ip2vzmgmv9b36ff2r6br3ql0b9ggzl8ijsyjy7pgiij04y" | ||||
|     }, | ||||
|     "hardtime-nvim": { | ||||
|       "type": "Git", | ||||
|       "repository": { | ||||
|         "type": "GitHub", | ||||
|         "owner": "m4xshen", | ||||
|         "repo": "hardtime.nvim" | ||||
|       }, | ||||
|       "branch": "main", | ||||
|       "submodules": false, | ||||
|       "revision": "9aaec65de041bddfc4c0af66919030d2950bcea8", | ||||
|       "url": "https://github.com/m4xshen/hardtime.nvim/archive/9aaec65de041bddfc4c0af66919030d2950bcea8.tar.gz", | ||||
|       "hash": "1rmcl200a4m3ip3xjzhh7ghhh2961xj2mw7yf0w44jpvs98gqb18" | ||||
|     }, | ||||
|     "harpoon": { | ||||
|       "type": "Git", | ||||
|       "repository": { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 haskex
				haskex