(nvim) add oil.nvim

This commit is contained in:
jc 2025-02-13 21:43:27 -05:00
commit 001afed693
No known key found for this signature in database
2 changed files with 41 additions and 11 deletions

View file

@ -0,0 +1,28 @@
return {
"stevearc/oil.nvim",
---@module 'oil'
---@type oil.SetupOpts
-- Optional dependencies
dependencies = { { "echasnovski/mini.icons", opts = {} } },
-- Lazy loading is not recommended because it is very tricky to make it work correctly in all situations.
lazy = false,
config = function()
local oil = require("oil")
oil.setup({
view_options = {
show_hidden = true,
},
})
end,
keys = {
{
"<leader>oo",
function()
require("oil").open()
end,
mode = "n",
desc = "[O]pen [O]il",
},
},
}