mappings: dont copy deleted text
This commit is contained in:
		
							parent
							
								
									41e059ac2b
								
							
						
					
					
						commit
						d360405447
					
				
							
								
								
									
										2
									
								
								init.lua
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								init.lua
									
									
									
									
									
								
							| @ -17,7 +17,7 @@ local cmd = vim.cmd | ||||
| local g = vim.g | ||||
| 
 | ||||
| g.mapleader = " " | ||||
| g.auto_save = 1 | ||||
| g.auto_save = 0 | ||||
| 
 | ||||
| -- colorscheme related stuff | ||||
| 
 | ||||
|  | ||||
| @ -6,6 +6,17 @@ local function map(mode, lhs, rhs, opts) | ||||
|     vim.api.nvim_set_keymap(mode, lhs, rhs, options) | ||||
| end | ||||
| 
 | ||||
| local opt = {} | ||||
| 
 | ||||
| -- dont copy any deleted text , this is disabled by default so uncomment the below mappings if you want them! | ||||
| --[[ | ||||
| 
 | ||||
| map("n", "dd", [=[ "_dd ]=], opt) | ||||
| map("v", "dd", [=[ "_dd ]=], opt) | ||||
| map("v", "x", [=[ "_x ]=], opt) | ||||
| 
 | ||||
| ]] | ||||
| 
 | ||||
| -- copy any selected text with pressing y | ||||
| map("", "<leader>c", '"+y') | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user