1
Fork 0
satellite/dotfiles/neovim/lua/my/keymaps.lua

13 lines
289 B
Lua
Raw Normal View History

2022-01-30 19:10:57 +01:00
local M = {}
2022-01-31 21:41:13 +01:00
function M.map(mode, lhs, rhs, opts)
2022-01-30 19:10:57 +01:00
local options = {noremap = true}
if opts then options = vim.tbl_extend('force', options, opts) end
vim.api.nvim_set_keymap(mode, lhs, rhs, options)
end
function M.setup()
2022-01-31 21:41:13 +01:00
M.map("i", "jj", "<Esc>") -- Remap Esc to
2022-01-30 20:19:35 +01:00
end
return M