From 6f13de7d44582ad451fc0751ea173c16d9e57f0e Mon Sep 17 00:00:00 2001 From: thek4n Date: Tue, 5 Nov 2024 13:49:24 +0300 Subject: [PATCH] nvim remove jf escape --- home/user/.config/nvim/lua/plugins/misc.lua | 24 ------------------- .../.config/nvim/lua/plugins/telescope.lua | 9 +++---- home/user/.config/zsh/mappings | 5 +--- 3 files changed, 6 insertions(+), 32 deletions(-) diff --git a/home/user/.config/nvim/lua/plugins/misc.lua b/home/user/.config/nvim/lua/plugins/misc.lua index 705ad62..3bfebfd 100644 --- a/home/user/.config/nvim/lua/plugins/misc.lua +++ b/home/user/.config/nvim/lua/plugins/misc.lua @@ -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 = "`^" - }, - ["о"] = { - ["а"] = "`^" - }, - }, - c = { - j = { - f = "", - }, - }, - }, - }) - end, - }, { 'Pocco81/auto-save.nvim', config = function() diff --git a/home/user/.config/nvim/lua/plugins/telescope.lua b/home/user/.config/nvim/lua/plugins/telescope.lua index 35c9d1a..0c694b6 100644 --- a/home/user/.config/nvim/lua/plugins/telescope.lua +++ b/home/user/.config/nvim/lua/plugins/telescope.lua @@ -44,12 +44,13 @@ return { [""] = actions.preview_scrolling_up, [""] = actions.toggle_all, [""] = actions.toggle_selection, - ["?"] = actions.which_key, - ["jf"] = { "", type = "command" }, }, n = { - ["jf"] = actions.close, - ["?"] = actions.which_key, + [""] = actions.move_selection_next, + [""] = actions.move_selection_previous, + [""] = actions.preview_scrolling_down, + [""] = actions.preview_scrolling_up, + [""] = actions.toggle_all, } }, selection_caret = " ", diff --git a/home/user/.config/zsh/mappings b/home/user/.config/zsh/mappings index 6b747a9..a444a3a 100644 --- a/home/user/.config/zsh/mappings +++ b/home/user/.config/zsh/mappings @@ -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