refresh reamps

This commit is contained in:
2026-07-02 02:54:58 +02:00
parent a9c8c0bef7
commit 8b3598b821
2 changed files with 6 additions and 2 deletions

View File

@@ -47,6 +47,8 @@ map("n", "<leader>Y", '"+Y', { desc = "yank line to system clipboard" })
map("n", "<leader>p", '"+p', { desc = "paste from system clipboard" })
map("n", "<leader>P", '"+P', { desc = "paste before from system clipboard" })
map("t", "\\\\", "<C-\\><C-n>", { desc = "exit terminal" })
map("t", "<C-\\><C-\\>", "<C-\\><C-n>", { desc = "exit terminal" })
map("t", "<C-Esc>", "<C-\\><C-n>", { desc = "exit terminal" })
map("t", "\\<Esc>", "<C-\\><C-n>", { desc = "exit terminal" })
@@ -54,6 +56,9 @@ map("n", "<C-h>", "<C-w>h", { desc = "window left" })
map("n", "<C-j>", "<C-w>j", { desc = "window down" })
map("n", "<C-k>", "<C-w>k", { desc = "window up" })
map("n", "<C-l>", "<C-w>l", { desc = "window right" })
map("n", "gR", function()
vim.cmd.normal({ args = { vim.keycode("<C-l>") }, bang = true })
end, { desc = "refresh current view" })
-- this is needed to disable refresh behavior for <C-l> for navigation
vim.api.nvim_create_autocmd("FileType", {

View File

@@ -26,11 +26,10 @@ require("oil").setup({
["<C-j>"] = false,
["<C-k>"] = false,
["<C-l>"] = false,
["gR"] = "actions.refresh", -- replaces default <C-l> behavior
["<C-s>"] = false,
["<C-p>"] = { "actions.preview", opts = { vertical = true, split = "belowright" } },
["<BS>"] = { "actions.parent", mode = "n" },
-- ["<A-h>"] = { "actions.parent", mode = "n" },
-- ["<A-l>"] = "actions.select",
},
view_options = {
show_hidden = true,