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