2021-12-08 09:38:24 -06:00
|
|
|
-- Map a key with optional options
|
|
|
|
function map(mode, keys, action, options)
|
|
|
|
if options == nil then
|
|
|
|
options = {}
|
|
|
|
end
|
|
|
|
vim.api.nvim_set_keymap(mode,keys,action,options)
|
|
|
|
end
|
|
|
|
|
2022-02-03 16:58:34 -06:00
|
|
|
|
2021-12-08 09:38:24 -06:00
|
|
|
map('i','jk','<Esc>',{noremap=true})
|
|
|
|
map('v','jk','<Esc>',{noremap=true})
|
2022-01-21 10:37:04 -06:00
|
|
|
|