Added cmdHeight changes for RecordingEnter/Leave
This commit is contained in:
		
							parent
							
								
									c32a329a0d
								
							
						
					
					
						commit
						76905f6f0b
					
				
							
								
								
									
										21
									
								
								init.lua
								
								
								
								
							
							
						
						
									
										21
									
								
								init.lua
								
								
								
								
							|  | @ -24,7 +24,7 @@ If you experience any errors while trying to install kickstart, run `:checkhealt | |||
| --]] | ||||
| 
 | ||||
| -- The file rakshit/core/options.lua will be storing all the options that we want to save n our file | ||||
| require('rakshit.core') | ||||
| require("rakshit.core") | ||||
| 
 | ||||
| -- Set to true if you have a Nerd Font installed and selected in the terminal | ||||
| vim.g.have_nerd_font = true | ||||
|  | @ -35,15 +35,26 @@ vim.g.have_nerd_font = true | |||
| -- Highlight when yanking (copying) text | ||||
| --  Try it with `yap` in normal mode | ||||
| --  See `:help vim.highlight.on_yank()` | ||||
| vim.api.nvim_create_autocmd('TextYankPost', { | ||||
|   desc = 'Highlight when yanking (copying) text', | ||||
|   group = vim.api.nvim_create_augroup('kickstart-highlight-yank', { clear = true }), | ||||
| vim.api.nvim_create_autocmd("TextYankPost", { | ||||
|   desc = "Highlight when yanking (copying) text", | ||||
|   group = vim.api.nvim_create_augroup("kickstart-highlight-yank", { clear = true }), | ||||
|   callback = function() | ||||
|     vim.highlight.on_yank() | ||||
|   end, | ||||
| }) | ||||
| 
 | ||||
| require('rakshit.lazy') | ||||
| vim.api.nvim_create_autocmd("RecordingEnter", { | ||||
|   callback = function() | ||||
|     vim.opt.cmdheight = 1 | ||||
|   end, | ||||
| }) | ||||
| vim.api.nvim_create_autocmd("RecordingLeave", { | ||||
|   callback = function() | ||||
|     vim.opt.cmdheight = 0 | ||||
|   end, | ||||
| }) | ||||
| 
 | ||||
| require("rakshit.lazy") | ||||
| 
 | ||||
| -- The line beneath this is called `modeline`. See `:help modeline` | ||||
| -- vim: ts=2 sts=2 sw=2 et | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue