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' }) -- vim.keymap.set('n', '-', '<CMD>Oil<CR>', { desc = 'Open parent directory' })
return { return {
-- 'stevearc/oil.nvim', 'stevearc/oil.nvim',
-- ---@module 'oil' ---@module 'oil'
-- ---@type oil.SetupOpts ---@type oil.SetupOpts
-- opts = { opts = {
-- view_options = { view_options = {
-- show_hidden = true, show_hidden = true,
-- }, },
-- keymaps = { keymaps = {
-- ['<C-p>'] = false, ['<C-p>'] = false,
-- }, ['-'] = false,
-- }, },
-- -- Optional dependencies },
-- dependencies = { { 'echasnovski/mini.icons', opts = {} } }, -- Optional dependencies
-- -- dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if you prefer nvim-web-devicons dependencies = { { 'echasnovski/mini.icons', opts = {} } },
-- -- Lazy loading is not recommended because it is very tricky to make it work correctly in all situations. -- dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if you prefer nvim-web-devicons
-- lazy = false, -- 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 | {} ---@type YaziConfig | {}
opts = { opts = {
-- if you want to open yazi instead of netrw, see below for more info -- if you want to open yazi instead of netrw, see below for more info
open_for_directories = true, open_for_directories = false,
keymaps = { keymaps = {
show_help = '<f1>', 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,
} }