aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/plugins/oil-nvim.lua
blob: 0f645c3f005e386b0cb6ba8895a059cd9d73c81d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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,
	},
	{
		"malewicz1337/oil-git.nvim",
		dependencies = {
			"stevearc/oil.nvim",
		},
	},
}