-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4711b49
commit 4c62b0c
Showing
3 changed files
with
53 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,34 @@ | ||
---@type LazySpec | ||
return { | ||
"DreamMaoMao/yazi.nvim", | ||
dependencies = { | ||
"nvim-telescope/telescope.nvim", | ||
"nvim-lua/plenary.nvim", | ||
}, | ||
|
||
"mikavilpas/yazi.nvim", | ||
event = "VeryLazy", | ||
keys = { | ||
{ "<leader>o", "<cmd>Yazi<CR>", desc = "Toggle Yazi" }, | ||
-- 👇 in this section, choose your own keymappings! | ||
{ | ||
"<leader>o", | ||
"<cmd>Yazi<cr>", | ||
desc = "Open yazi at the current file", | ||
}, | ||
{ | ||
-- Open in the current working directory | ||
"<leader>cw", | ||
"<cmd>Yazi cwd<cr>", | ||
desc = "Open the file manager in nvim's working directory", | ||
}, | ||
{ | ||
-- NOTE: this requires a version of yazi that includes | ||
-- https://github.com/sxyazi/yazi/pull/1305 from 2024-07-18 | ||
"<c-up>", | ||
"<cmd>Yazi toggle<cr>", | ||
desc = "Resume the last yazi session", | ||
}, | ||
}, | ||
---@type YaziConfig | ||
opts = { | ||
-- if you want to open yazi instead of netrw, see below for more info | ||
open_for_directories = false, | ||
keymaps = { | ||
show_help = "<f1>", | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters