From e678569e85ffce02a3fad908d97f833ee98aa898 Mon Sep 17 00:00:00 2001 From: Simo Soini Date: Mon, 12 May 2025 13:39:55 +0300 Subject: [PATCH] Added oil.nvim for directory manipulation. --- init.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/init.lua b/init.lua index 8eba6aa4..6ee10085 100644 --- a/init.lua +++ b/init.lua @@ -290,6 +290,23 @@ require('lazy').setup({ end, }, + -- Oil.nvim for directory manipulation + { + 'stevearc/oil.nvim', + ---@module 'oil' + ---@type oil.SetupOpts + opts = {}, + -- Optional dependencies + dependencies = { { 'echasnovski/mini.icons', opts = {} } }, + -- dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if you prefer nvim-web-devicons + -- Lazy loading is not recommended because it is very tricky to make it work correctly in all situations. + lazy = false, + config = function() + require('oil').setup() + vim.keymap.set('n', '-', 'Oil', { desc = 'Open parent directory' }) + end, + }, + -- NOTE: Plugins can also be added by using a table, -- with the first argument being the link and the following -- keys can be used to configure plugin behavior/loading/etc.