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

11 lines
281 B
Lua
Raw Normal View History

2022-01-30 19:10:57 +01:00
local M = {}
local function map(mode, lhs, rhs, opts)
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()
map("i", "jj", "<Esc>") -- Remap Esc to
end