neovim better escape mappings

This commit is contained in:
thek4n 2024-02-06 14:59:57 +03:00
parent b902354702
commit 0fbdae557d
2 changed files with 4 additions and 3 deletions

View File

@ -32,8 +32,8 @@ map('n', '<C-f>', ':set hlsearch<CR>/\\V<C-r><C-w>\\C<CR>')
map('n', '<Leader>hl', create_function_tabdo('lua toggle_number_style()'),
{desc = "Toggle line number style"})
map('i', 'jf', '<ESC>')
map('i', 'оа', '<ESC>')
map('i', 'jf', '<ESC>`^')
map('i', 'оа', '<ESC>`^')
map('n', '<Enter>', 'o<ESC>')
map('n', '<Space>', 'O<ESC>')

View File

@ -4,6 +4,7 @@ return {
require("better_escape").setup({
mapping = {'jf', 'оа'},
timeout = vim.o.timeoutlen,
keys = '<ESC>`^'
})
end,
}
}