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

16 lines
413 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})
2022-01-24 00:03:41 -06:00
-- keymappings [view all the defaults by pressing <leader>Lk]
-- lvim.leader = "space"
-- add your own keymapping
lvim.keys.normal_mode["<C-s>"] = ":w<cr>"