From 9e2ec6838e46f26da230a378a61fa8d6686b5bf1 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Mon, 20 May 2024 16:30:34 +0200 Subject: [PATCH] exchange mini.files with oil.nvim --- lua/custom/plugins/oil.lua | 10 ++++++++++ lua/kickstart/plugins/mini.lua | 6 ------ 2 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 lua/custom/plugins/oil.lua diff --git a/lua/custom/plugins/oil.lua b/lua/custom/plugins/oil.lua new file mode 100644 index 0000000..8708b4f --- /dev/null +++ b/lua/custom/plugins/oil.lua @@ -0,0 +1,10 @@ +return { + 'stevearc/oil.nvim', + opts = {}, + -- Optional dependencies + dependencies = { 'nvim-tree/nvim-web-devicons' }, + config = function() + require('oil').setup() + vim.keymap.set('n', 'fe', require('oil').open, { desc = '[F]ile [E]xplorer' }) + end, +} diff --git a/lua/kickstart/plugins/mini.lua b/lua/kickstart/plugins/mini.lua index d77ffc9..3e924a8 100644 --- a/lua/kickstart/plugins/mini.lua +++ b/lua/kickstart/plugins/mini.lua @@ -17,12 +17,6 @@ return { -- - sr)' - [S]urround [R]eplace [)] ['] require('mini.surround').setup() - -- Simple file explorer with in-buffer-editing - require('mini.files').setup() - vim.keymap.set({ 'n', 'v' }, 'fe', function() - MiniFiles.open() - end, { desc = '[F]ile [E]xplorer' }) - -- Simple and easy statusline. -- You could remove this setup call if you don't like it, -- and try some other statusline plugin