aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/plugins/oil-nvim.lua
blob: 460addceedff3221f655b6c6d3180190c602cb32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
return {
    {
        "stevearc/oil.nvim",
        ---@module 'oil'
        ---@type oil.SetupOpts
        opts = {
            vim.keymap.set("n", "<F2>", "<Cmd>Oil<CR>", { desc = "Open parent directory" }),
        },
        -- Optional dependencies
        -- dependencies = { { "nvim-mini/mini.icons", opts = {} } },
        dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if you prefer nvim-web-devicons
        -- Lazy loading is not recommended because it is very tricky to make it work correctly in all situations.
        lazy = false,
        version = "*",
    },
    {
        "malewicz1337/oil-git.nvim",
        version = "*",
        dependencies = {
            "stevearc/oil.nvim",
        },
    },
}