nvim: replace unmap definition, disable cursorline by default
This commit is contained in:
		
							parent
							
								
									2993285054
								
							
						
					
					
						commit
						a6f429aa5d
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -1,11 +1,11 @@
 | 
				
			||||||
vim.g.mapleader = ' '
 | 
					vim.g.mapleader = ' '
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function unmap(key)
 | 
					 | 
				
			||||||
    vim.api.nvim_set_keymap('', key, '', {})
 | 
					 | 
				
			||||||
end
 | 
					 | 
				
			||||||
function map(mode, key, action)
 | 
					function map(mode, key, action)
 | 
				
			||||||
    vim.api.nvim_set_keymap(mode, key, action, {noremap = true})
 | 
					    vim.api.nvim_set_keymap(mode, key, action, {noremap = true})
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 | 
					function unmap(key)
 | 
				
			||||||
 | 
					    map('', key, '')
 | 
				
			||||||
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- some unmaps
 | 
					-- some unmaps
 | 
				
			||||||
unmap(' ')
 | 
					unmap(' ')
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
vim.o.modeline       = false
 | 
					vim.o.modeline       = false
 | 
				
			||||||
vim.o.foldmethod     = 'marker'
 | 
					vim.o.foldmethod     = 'marker'
 | 
				
			||||||
vim.o.cursorline     = true
 | 
					vim.o.cursorline     = false
 | 
				
			||||||
vim.o.colorcolumn    = '80'
 | 
					vim.o.colorcolumn    = '80'
 | 
				
			||||||
vim.o.relativenumber = true
 | 
					vim.o.relativenumber = true
 | 
				
			||||||
vim.o.breakindent    = true
 | 
					vim.o.breakindent    = true
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue