15 lines
413 B
Lua
15 lines
413 B
Lua
-- 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})
|
|
|
|
-- keymappings [view all the defaults by pressing <leader>Lk]
|
|
-- lvim.leader = "space"
|
|
-- add your own keymapping
|
|
lvim.keys.normal_mode["<C-s>"] = ":w<cr>"
|