mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 02:52:37 +00:00 
			
		
		
		
	Merge pull request #866 from haskex/hardtime
	
		
			
	
		
	
	
		
	
		
			Some checks are pending
		
		
	
	
		
			
				
	
				Set up binary cache / cachix (default) (push) Waiting to run
				
			
		
			
				
	
				Set up binary cache / cachix (maximal) (push) Waiting to run
				
			
		
			
				
	
				Set up binary cache / cachix (nix) (push) Waiting to run
				
			
		
			
				
	
				Treewide Checks / Validate flake (push) Waiting to run
				
			
		
			
				
	
				Treewide Checks / Check formatting (push) Waiting to run
				
			
		
			
				
	
				Treewide Checks / Check source tree for typos (push) Waiting to run
				
			
		
			
				
	
				Treewide Checks / Validate documentation builds (push) Waiting to run
				
			
		
			
				
	
				Treewide Checks / Validate hyperlinks in documentation sources (push) Waiting to run
				
			
		
			
				
	
				Treewide Checks / Validate Editorconfig conformance (push) Waiting to run
				
			
		
			
				
	
				Build and deploy documentation / Check latest commit (push) Waiting to run
				
			
		
			
				
	
				Build and deploy documentation / publish (push) Blocked by required conditions
				
			
		
		
	
	
		
	
		
			Some checks are pending
		
		
	
	Set up binary cache / cachix (default) (push) Waiting to run
				
			Set up binary cache / cachix (maximal) (push) Waiting to run
				
			Set up binary cache / cachix (nix) (push) Waiting to run
				
			Treewide Checks / Validate flake (push) Waiting to run
				
			Treewide Checks / Check formatting (push) Waiting to run
				
			Treewide Checks / Check source tree for typos (push) Waiting to run
				
			Treewide Checks / Validate documentation builds (push) Waiting to run
				
			Treewide Checks / Validate hyperlinks in documentation sources (push) Waiting to run
				
			Treewide Checks / Validate Editorconfig conformance (push) Waiting to run
				
			Build and deploy documentation / Check latest commit (push) Waiting to run
				
			Build and deploy documentation / publish (push) Blocked by required conditions
				
			binds/hardtime-nvim: init
This commit is contained in:
		
				commit
				
					
						98d9f0e622
					
				
			
		
					 7 changed files with 58 additions and 0 deletions
				
			
		|  | @ -150,6 +150,7 @@ isMaximal: { | ||||||
|     binds = { |     binds = { | ||||||
|       whichKey.enable = true; |       whichKey.enable = true; | ||||||
|       cheatsheet.enable = true; |       cheatsheet.enable = true; | ||||||
|  |       hardtime-nvim.enable = isMaximal; | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|     telescope.enable = true; |     telescope.enable = true; | ||||||
|  |  | ||||||
|  | @ -356,3 +356,9 @@ | ||||||
| [poz](https://poz.pet): | [poz](https://poz.pet): | ||||||
| 
 | 
 | ||||||
| - Fix gitsigns null-ls issue. | - Fix gitsigns null-ls issue. | ||||||
|  | 
 | ||||||
|  | [Haskex](https://github.com/haskex): | ||||||
|  | 
 | ||||||
|  | [Hardtime.nvim]: https://github.com/m4xshen/hardtime.nvim | ||||||
|  | 
 | ||||||
|  | - Add Plugin [Hardtime.nvim] under `vim.binds.hardtime-nvim` with `enable` and `setupOpts` options | ||||||
|  |  | ||||||
|  | @ -2,5 +2,6 @@ _: { | ||||||
|   imports = [ |   imports = [ | ||||||
|     ./which-key |     ./which-key | ||||||
|     ./cheatsheet |     ./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-nvim; | ||||||
|  | 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-nvim = { | ||||||
|  |     enable = mkEnableOption "hardtime helper for no repeat keybinds"; | ||||||
|  | 
 | ||||||
|  |     setupOpts = mkPluginSetupOption "hardtime-nvim" {}; | ||||||
|  |   }; | ||||||
|  | } | ||||||
|  | @ -614,6 +614,19 @@ | ||||||
|       "url": "https://github.com/ellisonleao/gruvbox.nvim/archive/91a0f8e460197a521d42a2e84a7a2a4010be4bbb.tar.gz", |       "url": "https://github.com/ellisonleao/gruvbox.nvim/archive/91a0f8e460197a521d42a2e84a7a2a4010be4bbb.tar.gz", | ||||||
|       "hash": "1bmxps0wawyvwyzcwzdxbf1wcqx6v7h6afj3yzgb38gz649wr8q7" |       "hash": "1bmxps0wawyvwyzcwzdxbf1wcqx6v7h6afj3yzgb38gz649wr8q7" | ||||||
|     }, |     }, | ||||||
|  |     "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": { |     "harpoon": { | ||||||
|       "type": "Git", |       "type": "Git", | ||||||
|       "repository": { |       "repository": { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 GitHub
					GitHub