diff options
| author | Elvis Claros Castro <elvis@claros.ar> | 2024-08-17 18:37:18 -0300 |
|---|---|---|
| committer | Elvis Claros Castro <elvis@claros.ar> | 2024-08-17 18:37:18 -0300 |
| commit | 56758415b40197ff1e7dab653ab24af58727aa4e (patch) | |
| tree | 7540fa0d34e1c07adb26eb3aa59e529e7ea189a4 /lua/plugins/oil.lua | |
| parent | 41d3fb238db45b38b2ddb1635f45f098bd963ad2 (diff) | |
| download | nvim-conf-56758415b40197ff1e7dab653ab24af58727aa4e.tar.gz nvim-conf-56758415b40197ff1e7dab653ab24af58727aa4e.zip | |
Feat: update all
Diffstat (limited to 'lua/plugins/oil.lua')
| -rw-r--r-- | lua/plugins/oil.lua | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lua/plugins/oil.lua b/lua/plugins/oil.lua index 58c0c13..947876e 100644 --- a/lua/plugins/oil.lua +++ b/lua/plugins/oil.lua @@ -3,8 +3,13 @@ return 'stevearc/oil.nvim', opts = {}, -- Optional dependencies - dependencies = { "nvim-tree/nvim-web-devicons" }, + dependencies = { + "nvim-tree/nvim-web-devicons", + "ElvisClaros/oil-image-preview.nvim", + }, config = function () + + local oip = require("oil-image-preview") require('oil').setup({ -- Oil will take over directory buffers (e.g. `vim .` or `:e src/`) -- Set to false if you still want to use netrw. @@ -25,7 +30,7 @@ return -- Window-local options to use for oil buffers win_options = { wrap = false, - signcolumn = "no", + signcolumn = "yes:3", cursorcolumn = false, foldcolumn = "0", spell = false, @@ -79,6 +84,8 @@ return ["gx"] = "actions.open_external", ["g."] = "actions.toggle_hidden", ["g\\"] = "actions.toggle_trash", + ["g<leader>"] = oip.openWithQuickLook, + ["gp"] = oip.weztermPreview, }, -- Configuration for the floating keymaps help window keymaps_help = { |