From 969aa6d3444f857c383b0e271febe087cd224349 Mon Sep 17 00:00:00 2001 From: Elvis Claros Castro Date: Fri, 23 Aug 2024 09:40:05 -0300 Subject: Feat: update --- lua/plugins/oil.lua | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'lua/plugins/oil.lua') diff --git a/lua/plugins/oil.lua b/lua/plugins/oil.lua index 947876e..694fea9 100644 --- a/lua/plugins/oil.lua +++ b/lua/plugins/oil.lua @@ -5,7 +5,7 @@ return -- Optional dependencies dependencies = { "nvim-tree/nvim-web-devicons", - "ElvisClaros/oil-image-preview.nvim", + {"ElvisClaros/oil-image-preview.nvim", lazy = false}, }, config = function () @@ -60,7 +60,7 @@ return -- Set to `false` to disable, or "name" to keep it on the file names constrain_cursor = "editable", -- Set to true to watch the filesystem for changes and reload oil - experimental_watch_for_changes = false, + experimental_watch_for_changes = true, -- Keymaps in oil buffer. Can be any value that `vim.keymap.set` accepts OR a table of keymap -- options with a `callback` (e.g. { callback = function() ... end, desc = "", mode = "n" }) -- Additionally, if it is a string that matches "actions.", @@ -86,6 +86,17 @@ return ["g\\"] = "actions.toggle_trash", ["g"] = oip.openWithQuickLook, ["gp"] = oip.weztermPreview, + ["gdi"] = function() + require("oil").set_columns({ "icon", "", "", "" }) + end, + ["gdf"] = function() + require("oil").set_columns({ "icon", "permissions", "size", "mtime" }) + end, + ["g:"] = { + "actions.open_terminal", + desc = "Open terminal in current directory", + }, + }, -- Configuration for the floating keymaps help window keymaps_help = { -- cgit v1.2.3