This commit is contained in:
2025-11-11 22:58:02 +00:00
parent 8e2d413e0a
commit f16cb91875
2 changed files with 18 additions and 24 deletions

View File

@@ -4,20 +4,21 @@
-- vim.keymap.set('n', '-', '<CMD>Oil<CR>', { desc = 'Open parent directory' })
return {
-- 'stevearc/oil.nvim',
-- ---@module 'oil'
-- ---@type oil.SetupOpts
-- opts = {
-- view_options = {
-- show_hidden = true,
-- },
-- keymaps = {
-- ['<C-p>'] = false,
-- },
-- },
-- -- 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,
'stevearc/oil.nvim',
---@module 'oil'
---@type oil.SetupOpts
opts = {
view_options = {
show_hidden = true,
},
keymaps = {
['<C-p>'] = false,
['-'] = false,
},
},
-- 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,
}

View File

@@ -24,16 +24,9 @@ return {
---@type YaziConfig | {}
opts = {
-- if you want to open yazi instead of netrw, see below for more info
open_for_directories = true,
open_for_directories = false,
keymaps = {
show_help = '<f1>',
},
},
-- 👇 if you use `open_for_directories=true`, this is recommended
init = function()
-- mark netrw as loaded so it's not loaded at all.
--
-- More details: https://github.com/mikavilpas/yazi.nvim/issues/802
vim.g.loaded_netrwPlugin = 1
end,
}