Stuff
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user