nvim: Add oil.nvim

This commit is contained in:
Václav Uruba 2025-11-30 17:06:42 +01:00
parent 9decd546d3
commit cd077c6856
Signed by: uruba
GPG Key ID: 9D8E987C4B2E1E9C

View File

@ -0,0 +1,23 @@
return {
"stevearc/oil.nvim",
---@module 'oil'
---@type oil.SetupOpts
opts = {},
config = function()
local oil = require("oil")
-- set keymaps
local keymap = vim.keymap -- for conciseness
keymap.set("n", "<leader>er", function()
oil.toggle_float()
end, { desc = "Open oil.nvim in floating window" })
oil.setup()
end,
-- 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,
}