dotfiles/home/private_dot_config/lvim/lua/keybindings.lua

14 lines
259 B
Lua
Raw Normal View History

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
map('i','jk','<Esc>',{noremap=true})
map('v','jk','<Esc>',{noremap=true})