nvim remove jf escape

This commit is contained in:
thek4n 2024-11-05 13:49:24 +03:00
parent 82d9a032ab
commit 6f13de7d44
3 changed files with 6 additions and 32 deletions

View File

@ -101,30 +101,6 @@ return {
require("marks").setup()
end
},
{
"max397574/better-escape.nvim",
config = function()
require("better_escape").setup({
timeout = vim.o.timeoutlen,
default_mappings = false,
mappings = {
i = {
j = {
f = "<ESC>`^"
},
["о"] = {
["а"] = "<ESC>`^"
},
},
c = {
j = {
f = "<Esc>",
},
},
},
})
end,
},
{
'Pocco81/auto-save.nvim',
config = function()

View File

@ -44,12 +44,13 @@ return {
["<C-p>"] = actions.preview_scrolling_up,
["<C-a>"] = actions.toggle_all,
["<C-o>"] = actions.toggle_selection,
["?"] = actions.which_key,
["jf"] = { "<esc>", type = "command" },
},
n = {
["jf"] = actions.close,
["?"] = actions.which_key,
["<C-j>"] = actions.move_selection_next,
["<C-k>"] = actions.move_selection_previous,
["<C-n>"] = actions.preview_scrolling_down,
["<C-p>"] = actions.preview_scrolling_up,
["<C-a>"] = actions.toggle_all,
}
},
selection_caret = "",

View File

@ -1,10 +1,7 @@
KEYTIMEOUT=1
# Activate vim mode.
bindkey -v
bindkey -M viins 'jf' vi-cmd-mode
bindkey -M visual 'jf' vi-cmd-mode
bindkey -M visual 'i' vi-insert
bindkey -M visual 'a' vi-add-next