From: Samir Benmendil Date: Tue, 26 Mar 2024 00:40:10 +0000 (+0000) Subject: nvim: replace neo-tree with oil X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/e0e3d9c441222774366e15934d59b2235eebba43 nvim: replace neo-tree with oil netrw/vinegar/oil are better file browser approaches. --- diff --git a/nvim/lua/plugins/editor.lua b/nvim/lua/plugins/editor.lua index 1ec7312..a1fb2d1 100644 --- a/nvim/lua/plugins/editor.lua +++ b/nvim/lua/plugins/editor.lua @@ -92,8 +92,33 @@ return { end, keys = { { "ss", "Telescope luasnip", desc = "Snippets" } }, }, + { + "stevearc/oil.nvim", + opts = { + keymaps = { + ["g?"] = "actions.show_help", + [""] = "actions.select", + [""] = "actions.select_vsplit", + [""] = false, -- used to be actions.select_split + [""] = "actions.select_tab", + [""] = "actions.preview", + [""] = "actions.close", + [""] = false, -- used to be actions.refresh + ["-"] = "actions.parent", + ["_"] = "actions.open_cwd", + ["`"] = "actions.cd", + ["~"] = "actions.tcd", + ["gs"] = "actions.change_sort", + ["gx"] = "actions.open_external", + ["g."] = "actions.toggle_hidden", + ["g\\"] = "actions.toggle_trash", + }, + }, + dependencies = {"nvim-tree/nvim-web-devicons"}, + }, { "neo-tree.nvim", + enabled = false, lazy = false, opts = { filesystem = {