1
0
Fork 0

nvim: replace unmap definition, disable cursorline by default

This commit is contained in:
Von Random 2023-09-11 19:38:52 +03:00
parent 2993285054
commit a6f429aa5d
2 changed files with 4 additions and 4 deletions

View file

@ -1,11 +1,11 @@
vim.g.mapleader = ' '
function unmap(key)
vim.api.nvim_set_keymap('', key, '', {})
end
function map(mode, key, action)
vim.api.nvim_set_keymap(mode, key, action, {noremap = true})
end
function unmap(key)
map('', key, '')
end
-- some unmaps
unmap(' ')

View file

@ -1,6 +1,6 @@
vim.o.modeline = false
vim.o.foldmethod = 'marker'
vim.o.cursorline = true
vim.o.cursorline = false
vim.o.colorcolumn = '80'
vim.o.relativenumber = true
vim.o.breakindent = true