nvim(fix): escape mappings

This commit is contained in:
thek4n 2024-07-10 11:31:09 +03:00
parent 17aff0aca3
commit 4d956342e7
2 changed files with 2 additions and 12 deletions

View File

@ -42,17 +42,6 @@ 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',
'<C-[>',
function()
local current_line, _ = unpack(vim.api.nvim_win_get_cursor(0))
vim.api.nvim_win_set_cursor(0, {current_line, COLUMN_NUMBER_BEFORE_INSERT})
vim.cmd('stopinsert')
end
)
map('n',
'.',

View File

@ -103,6 +103,8 @@ return {
"max397574/better-escape.nvim",
config = function()
require("better_escape").setup({
timeout = vim.o.timeoutlen,
default_mappings = false,
mappings = {
i = {
j = {
@ -113,7 +115,6 @@ return {
}
}
},
timeout = vim.o.timeoutlen,
})
end,
},