summaryrefslogtreecommitdiff
path: root/lua/talha/plugins/oil.lua
diff options
context:
space:
mode:
authortalha <talha@talhaamir.xyz>2026-07-26 11:55:58 +0500
committertalha <talha@talhaamir.xyz>2026-07-26 11:55:58 +0500
commit1c8503345693788660ac0a132b111ebeb08ed87f (patch)
treef78456b136fef6ad77885ee518e3def2dcde1a6f /lua/talha/plugins/oil.lua
parent70fe2441aa025243e29d47aabe1b6674c4e0ed71 (diff)
Updated config
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
+}