summaryrefslogtreecommitdiff
path: root/lua/custom/plugins/oil.lua
diff options
context:
space:
mode:
authortdback <tyler@tdback.net>2024-12-04 18:48:24 -0500
committertdback <tyler@tdback.net>2024-12-04 18:48:24 -0500
commit3b2163b821f4dbf1003804b9b19fd276dc4bc350 (patch)
tree809a679142eae8e7d3b4d2b3cf1426416883a7f9 /lua/custom/plugins/oil.lua
initial commit to new repo
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,
+}