From 192dc306e0181236cea6cad0e03ed6ccfd5c7783 Mon Sep 17 00:00:00 2001 From: Roman Date: Thu, 19 Nov 2026 23:12:38 +0100 Subject: [PATCH] fix oil shortcuts --- nvim/.config/nvim/README.md | 5 ++--- nvim/.config/nvim/lua/romanzy/plugins/oil.lua | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nvim/.config/nvim/README.md b/nvim/.config/nvim/README.md index 7e797f2..b38ef52 100644 --- a/nvim/.config/nvim/README.md +++ b/nvim/.config/nvim/README.md @@ -58,10 +58,9 @@ Git shortcuts: - `[h`, `]h`, `[H`, `]H` jump to hunks - `th` — toggle the expanded hunk view -Oil usage: +Oil shortcuts: -- `-`, `` goes to the parent directory -- `` previews the selected entry +- `gp` opens preview panel Toggle shortcuts: diff --git a/nvim/.config/nvim/lua/romanzy/plugins/oil.lua b/nvim/.config/nvim/lua/romanzy/plugins/oil.lua index f883529..9663aab 100644 --- a/nvim/.config/nvim/lua/romanzy/plugins/oil.lua +++ b/nvim/.config/nvim/lua/romanzy/plugins/oil.lua @@ -30,7 +30,8 @@ require("oil").setup({ ["gR"] = "actions.refresh", -- replaces default behavior [""] = "actions.refresh", [""] = false, - [""] = { "actions.preview", opts = { vertical = true, split = "belowright" } }, + [""] = false, + ["gp"] = { "actions.preview", opts = { vertical = true, split = "belowright" } }, [""] = { "actions.parent", mode = "n" }, }, view_options = {