summaryrefslogtreecommitdiff
path: root/lua/talha/plugins/oil.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/talha/plugins/oil.lua')
-rw-r--r--lua/talha/plugins/oil.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/lua/talha/plugins/oil.lua b/lua/talha/plugins/oil.lua
new file mode 100644
index 0000000..a7196fa
--- /dev/null
+++ b/lua/talha/plugins/oil.lua
@@ -0,0 +1,24 @@
+return {
+ 'stevearc/oil.nvim',
+ dependencies = { { "nvim-mini/mini.icons", version = '*',
+ config = function()
+ require('mini.icons').setup()
+ end
+ } },
+ -- Lazy loading is not recommended because it is very tricky to make it work correctly in all situations.
+ lazy = false,
+ config = function()
+ require("oil").setup({
+ columns = {
+ "icon",
+ },
+ view_options = {
+ show_hidden = true,
+ },
+ keymaps = {
+ ["<A-l>"] = { "actions.select", mode = "n" },
+ ["<A-h>"] = { "actions.parent", mode = "n" },
+ }
+ })
+ end
+}