mirror of
				https://github.com/WarrenHood/dotfiles.git
				synced 2025-11-04 07:58:41 +00:00 
			
		
		
		
	Disable arrow keys
This commit is contained in:
		
							parent
							
								
									7913d705ee
								
							
						
					
					
						commit
						4a74c879f6
					
				| 
						 | 
				
			
			@ -144,3 +144,11 @@ map('n', '<Space>bw', '<Cmd>BufferOrderByWindowNumber<CR>', barbar_opts)
 | 
			
		|||
-- Other:
 | 
			
		||||
-- :BarbarEnable - enables barbar (enabled by default)
 | 
			
		||||
-- :BarbarDisable - very bad command, should never be used
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
-- Disable arrow keys
 | 
			
		||||
local arrows = {'<Up>', '<Down>', '<Left>', '<Right>'}
 | 
			
		||||
for i=1,#arrows do
 | 
			
		||||
    map('n', arrows[i], function () end)
 | 
			
		||||
    map('i', arrows[i], function () end)
 | 
			
		||||
end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue