2025-04-13 22:53:08 +01:00
|
|
|
-- Filesystem manager
|
2025-04-14 15:20:54 +01:00
|
|
|
require('helpers').edit_cf('po', '/lua/plugins/oil.lua')
|
2025-04-13 22:53:08 +01:00
|
|
|
|
|
|
|
|
vim.keymap.set('n', '-', '<CMD>Oil<CR>', { desc = 'Open parent directory' })
|
2025-04-14 11:38:42 +01:00
|
|
|
|
2025-04-13 22:53:08 +01:00
|
|
|
return {
|
|
|
|
|
'stevearc/oil.nvim',
|
|
|
|
|
---@module 'oil'
|
|
|
|
|
---@type oil.SetupOpts
|
|
|
|
|
opts = {
|
|
|
|
|
view_options = {
|
|
|
|
|
show_hidden = true,
|
|
|
|
|
},
|
2025-04-14 15:20:54 +01:00
|
|
|
keymaps = {
|
|
|
|
|
['<C-p>'] = false,
|
|
|
|
|
},
|
2025-04-13 22:53:08 +01:00
|
|
|
},
|
|
|
|
|
-- Optional dependencies
|
|
|
|
|
dependencies = { { 'echasnovski/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,
|
|
|
|
|
}
|