summaryrefslogtreecommitdiff
path: root/lua/talha/plugins/oil.lua
blob: a7196fa1c2e3563e005e0efd7a14cb96d66cf416 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
}