diff --git a/lua/install-plugins.lua b/lua/install-plugins.lua index cc6a179..5ddbfa7 100644 --- a/lua/install-plugins.lua +++ b/lua/install-plugins.lua @@ -34,6 +34,7 @@ return require('packer').startup(function(use) } use { 'j-hui/fidget.nvim', + tag = 'legacy', config = function() require('plugins.fidget-nvim') end, @@ -272,14 +273,13 @@ return require('packer').startup(function(use) end } use { - 'kyazdani42/nvim-tree.lua', + 'stevearc/oil.nvim', requires = { - 'kyazdani42/nvim-web-devicons', + 'nvim-tree/nvim-web-devicons', }, - tag = 'nightly', config = function() - require('plugins.nvim-tree') - end + require('plugins.oil-nvim') + end, } use { 'kylechui/nvim-surround', diff --git a/lua/plugins/nvim-tree.lua b/lua/plugins/nvim-tree.lua deleted file mode 100644 index 2e9116e..0000000 --- a/lua/plugins/nvim-tree.lua +++ /dev/null @@ -1,30 +0,0 @@ -require('nvim-tree').setup({ - hijack_netrw = true, - hijack_directories = { - enable = true, - auto_open = true, - }, - view = { - mappings = { - list = { - { key = "", action = "edit_in_place" }, - { key = "", action = "toggle_file_info" }, - } - } - }, - remove_keymaps = { - '' - }, -}) - -local function toggle_replace() - local view = require("nvim-tree.view") - if view.is_visible() then - view.close() - else - require("nvim-tree").open_replacing_current_buffer() - end -end - -vim.keymap.set('n', '-', function() toggle_replace() end, { noremap = true, silent = true }) -vim.keymap.set('n', 'n', [[NvimTreeToggle]], { noremap = true, silent = true, desc = "Toggle [N]vim Tree" }) diff --git a/lua/plugins/oil-nvim.lua b/lua/plugins/oil-nvim.lua new file mode 100644 index 0000000..05a42e3 --- /dev/null +++ b/lua/plugins/oil-nvim.lua @@ -0,0 +1,3 @@ +require("oil").setup() + +vim.keymap.set("n", "-", require("oil").open, { desc = "Open parent directory" })