From e3f671354990481ff25229ce47c4252a2474ddd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrzej=20Wi=C4=85cek?= Date: Sun, 26 Oct 2025 23:15:51 +0100 Subject: [PATCH] Leader j doesn't work because it delays space in insert mode --- lua/mappings.lua | 8 ++++---- lua/options.lua | 2 +- lua/plugins/telescope.lua | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lua/mappings.lua b/lua/mappings.lua index ecca5c3..8a40ad0 100644 --- a/lua/mappings.lua +++ b/lua/mappings.lua @@ -9,8 +9,8 @@ map("n", ";", ":") map("v", ";", ":") -- easier than reaching for escape -map("i", "j", "") -map("v", "j", "") +map("i", "", "") +map("v", "", "") -- navigate tabs map("n", "", "gT") @@ -21,9 +21,9 @@ map("n", "", "x") map("n", "", "q!") -- terminal -map("t", "j", "") +map("t", "", "") map("t", "", "") -map("n", "t", "vspterminali") +map("n", "", "vspterminali") -- commenting out map("n", "", "gcc", { remap = true }) diff --git a/lua/options.lua b/lua/options.lua index 8606f16..c2e26c8 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -18,7 +18,7 @@ local options = { splitright = true, -- force all vertical splits to go to the right of current window swapfile = false, -- disable swapfile termguicolors = true, -- set term gui colors (most terminals support this) - timeoutlen = 250, -- time to wait for a mapped sequence to complete (in milliseconds) + timeoutlen = 300, -- time to wait for a mapped sequence to complete (in milliseconds) undofile = true, -- enable persistent undo updatetime = 300, -- faster completion (4000ms default) writebackup = false, -- if a file is being edited by another program (or was written to file while editing with another program), it is not allowed to be edited diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua index 03bb5b4..21700e1 100644 --- a/lua/plugins/telescope.lua +++ b/lua/plugins/telescope.lua @@ -35,7 +35,7 @@ return { mappings = { i = { [""] = actions.close, - ["j"] = actions.close, + [""] = actions.close, [""] = actions.select_tab, -- Open in new tab [""] = actions.select_vertical, -- Open in vertical split },