AutoYADM commit: 2024-11-10 15:30:01
This commit is contained in:
parent
a5c3633875
commit
3088d88eea
3 changed files with 35 additions and 1 deletions
|
@ -91,7 +91,7 @@ end, { desc = "Open Yank History", remap = false })
|
||||||
-- map({ "n" }, "z-", "z=", { desc = "Spelling Suggestions", remap = true })
|
-- map({ "n" }, "z-", "z=", { desc = "Spelling Suggestions", remap = true })
|
||||||
|
|
||||||
-- Oil.nvim open parent directory
|
-- Oil.nvim open parent directory
|
||||||
map("n", "-", "<CMD>Oil<CR>", { desc = "Open Oil" })
|
-- map("n", "-", "<CMD>Oil<CR>", { desc = "Open Oil" })
|
||||||
|
|
||||||
-- TODO: add leader + y for save current buf, leader + Y to write all
|
-- TODO: add leader + y for save current buf, leader + Y to write all
|
||||||
map({ "n", "x" }, "<leader>y", "<CMD>w<CR>", { desc = "Save" })
|
map({ "n", "x" }, "<leader>y", "<CMD>w<CR>", { desc = "Save" })
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
return {
|
return {
|
||||||
"stevearc/oil.nvim",
|
"stevearc/oil.nvim",
|
||||||
|
enabled = true,
|
||||||
---@module 'oil'
|
---@module 'oil'
|
||||||
---@type oil.SetupOpts
|
---@type oil.SetupOpts
|
||||||
opts = {
|
opts = {
|
||||||
|
@ -17,6 +18,9 @@ return {
|
||||||
-- ["<BS>"] = "actions.parent",
|
-- ["<BS>"] = "actions.parent",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
keys = {
|
||||||
|
{ "n", "-", "<CMD>Oil<CR>", { desc = "Open Oil" } },
|
||||||
|
},
|
||||||
-- Optional dependencies
|
-- Optional dependencies
|
||||||
dependencies = { { "echasnovski/mini.icons", opts = {} } },
|
dependencies = { { "echasnovski/mini.icons", opts = {} } },
|
||||||
-- dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if prefer nvim-web-devicons
|
-- dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if prefer nvim-web-devicons
|
||||||
|
|
30
.config/nvim/lua/plugins/yazi.lua
Normal file
30
.config/nvim/lua/plugins/yazi.lua
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
return {
|
||||||
|
"mikavilpas/yazi.nvim",
|
||||||
|
event = "VeryLazy",
|
||||||
|
keys = {
|
||||||
|
-- 👇 in this section, choose your own keymappings!
|
||||||
|
{
|
||||||
|
"<leader>-",
|
||||||
|
"<cmd>Yazi<cr>",
|
||||||
|
desc = "Open yazi at the current file",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
-- Open in the current working directory
|
||||||
|
"<leader>_",
|
||||||
|
"<cmd>Yazi cwd<cr>",
|
||||||
|
desc = "Open the file manager in nvim's working directory",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>L",
|
||||||
|
"<cmd>Yazi toggle<cr>",
|
||||||
|
desc = "Resume the last yazi session",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
opts = {
|
||||||
|
-- if you want to open yazi instead of netrw, see below for more info
|
||||||
|
open_for_directories = false,
|
||||||
|
keymaps = {
|
||||||
|
show_help = "<F1>",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue