From 8b3598b8217428da07afb6594bc8d9f192aebae2 Mon Sep 17 00:00:00 2001 From: Roman Date: Thu, 2 Jul 2026 02:54:58 +0200 Subject: [PATCH] refresh reamps --- nvim/.config/nvim/lua/romanzy/keymaps.lua | 5 +++++ nvim/.config/nvim/lua/romanzy/plugins/oil.lua | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/nvim/.config/nvim/lua/romanzy/keymaps.lua b/nvim/.config/nvim/lua/romanzy/keymaps.lua index a533c68..c8d8165 100644 --- a/nvim/.config/nvim/lua/romanzy/keymaps.lua +++ b/nvim/.config/nvim/lua/romanzy/keymaps.lua @@ -47,6 +47,8 @@ map("n", "Y", '"+Y', { desc = "yank line to system clipboard" }) map("n", "p", '"+p', { desc = "paste from system clipboard" }) map("n", "P", '"+P', { desc = "paste before from system clipboard" }) +map("t", "\\\\", "", { desc = "exit terminal" }) +map("t", "", "", { desc = "exit terminal" }) map("t", "", "", { desc = "exit terminal" }) map("t", "\\", "", { desc = "exit terminal" }) @@ -54,6 +56,9 @@ map("n", "", "h", { desc = "window left" }) map("n", "", "j", { desc = "window down" }) map("n", "", "k", { desc = "window up" }) map("n", "", "l", { desc = "window right" }) +map("n", "gR", function() + vim.cmd.normal({ args = { vim.keycode("") }, bang = true }) +end, { desc = "refresh current view" }) -- this is needed to disable refresh behavior for for navigation vim.api.nvim_create_autocmd("FileType", { diff --git a/nvim/.config/nvim/lua/romanzy/plugins/oil.lua b/nvim/.config/nvim/lua/romanzy/plugins/oil.lua index 108eef9..6d955ef 100644 --- a/nvim/.config/nvim/lua/romanzy/plugins/oil.lua +++ b/nvim/.config/nvim/lua/romanzy/plugins/oil.lua @@ -26,11 +26,10 @@ require("oil").setup({ [""] = false, [""] = false, [""] = false, + ["gR"] = "actions.refresh", -- replaces default behavior [""] = false, [""] = { "actions.preview", opts = { vertical = true, split = "belowright" } }, [""] = { "actions.parent", mode = "n" }, - -- [""] = { "actions.parent", mode = "n" }, - -- [""] = "actions.select", }, view_options = { show_hidden = true,