summaryrefslogtreecommitdiff
path: root/lua/custom/plugins/oil.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/custom/plugins/oil.lua')
-rw-r--r--lua/custom/plugins/oil.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/lua/custom/plugins/oil.lua b/lua/custom/plugins/oil.lua
new file mode 100644
index 0000000..32950fa
--- /dev/null
+++ b/lua/custom/plugins/oil.lua
@@ -0,0 +1,13 @@
+return {
+ "stevearc/oil.nvim",
+ dependencies = { "nvim-tree/nvim-web-devicons" },
+ config = function()
+ require("oil").setup({
+ default_file_explorer = true,
+ skip_confirm_for_simple_edits = true,
+ view_options = { show_hidden = true },
+ })
+
+ vim.keymap.set("n", "-", "<CMD>Oil<CR>", { desc = "Open parent directory" })
+ end,
+}