48 lines
678 B
Lua
48 lines
678 B
Lua
return {
|
|
{
|
|
"max397574/better-escape.nvim",
|
|
config = function()
|
|
require("better_escape").setup({
|
|
timeout = vim.o.timeoutlen,
|
|
default_mappings = true,
|
|
mappings = {
|
|
i = {
|
|
j = {
|
|
-- These can all also be functions
|
|
k = "<Esc>",
|
|
j = "<Esc>",
|
|
},
|
|
i = {
|
|
i = "<Esc>",
|
|
},
|
|
},
|
|
c = {
|
|
j = {
|
|
k = "<Esc>",
|
|
j = "<Esc>",
|
|
},
|
|
i = {
|
|
i = "<Esc>",
|
|
},
|
|
},
|
|
t = {
|
|
j = {
|
|
k = "<C-\\><C-n>",
|
|
},
|
|
},
|
|
v = {
|
|
j = {
|
|
k = "<Esc>",
|
|
},
|
|
},
|
|
s = {
|
|
j = {
|
|
k = "<Esc>",
|
|
},
|
|
},
|
|
},
|
|
})
|
|
end,
|
|
},
|
|
}
|