From 436cd3ebae96b38202fa9f344e13713c6a9c3d35 Mon Sep 17 00:00:00 2001 From: Roman Date: Thu, 25 Jun 2026 15:55:17 +0200 Subject: [PATCH] improve navigation --- nvim/.config/nvim/README.md | 5 +++++ nvim/.config/nvim/lua/romanzy/plugins/oil.lua | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/nvim/.config/nvim/README.md b/nvim/.config/nvim/README.md index 96e68c6..ac6a934 100644 --- a/nvim/.config/nvim/README.md +++ b/nvim/.config/nvim/README.md @@ -43,7 +43,12 @@ Oil usage: - `dl` opens the parent directory of the current file - `` opens a file or enters a directory - `-` goes to the parent directory +- `` also goes to the parent directory +- `` also goes to the parent directory +- `` opens the selected file or enters the selected directory +- `` previews the selected entry in a right-hand vertical split - edit the Oil buffer, then `:w` to apply file operations +- hidden files are shown, but `.git` stays hidden Open `netrw` explicitly with: diff --git a/nvim/.config/nvim/lua/romanzy/plugins/oil.lua b/nvim/.config/nvim/lua/romanzy/plugins/oil.lua index 0cfb99a..99b2c9d 100644 --- a/nvim/.config/nvim/lua/romanzy/plugins/oil.lua +++ b/nvim/.config/nvim/lua/romanzy/plugins/oil.lua @@ -11,6 +11,11 @@ require("oil").setup({ [""] = false, [""] = false, [""] = false, + [""] = false, + [""] = { "actions.preview", opts = { vertical = true, split = "belowright" } }, + [""] = { "actions.parent", mode = "n" }, + [""] = { "actions.parent", mode = "n" }, + [""] = "actions.select", }, view_options = { show_hidden = true,