From e2504f0d78dceafe46bc838d3d82be10ff43a1b9 Mon Sep 17 00:00:00 2001 From: Diachk Date: Tue, 31 Dec 2024 22:25:27 +0000 Subject: [PATCH] add oil nvim --- lua/config/keymaps.lua | 3 +++ lua/plugins/oil.lua | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 lua/plugins/oil.lua diff --git a/lua/config/keymaps.lua b/lua/config/keymaps.lua index af7d336..9076caf 100644 --- a/lua/config/keymaps.lua +++ b/lua/config/keymaps.lua @@ -69,3 +69,6 @@ vim.keymap.set("v", "ai", function() vim.cmd("AvanteEdit") feed_keys("Do what the first comment says. Do nothing if there is no actionable comment.", "i") end, { desc = "AI implement what the comment says" }) + +-- Oil file explorer +vim.keymap.set("n", "-", "Oil", { desc = "Open parent directory" }) diff --git a/lua/plugins/oil.lua b/lua/plugins/oil.lua new file mode 100644 index 0000000..66f9483 --- /dev/null +++ b/lua/plugins/oil.lua @@ -0,0 +1,9 @@ +return { + "stevearc/oil.nvim", + ---@module 'oil' + ---@type oil.SetupOpts + opts = {}, + -- Optional dependencies + dependencies = { { "echasnovski/mini.icons", opts = {} } }, + -- dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if prefer nvim-web-devicons +}