(nvim) add oil.nvim
This commit is contained in:
parent
3a85ebad74
commit
001afed693
2 changed files with 41 additions and 11 deletions
28
nvim/lua/juancwu/plugins/oil.lua
Normal file
28
nvim/lua/juancwu/plugins/oil.lua
Normal 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",
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue