-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(nvim): allow yazi.nvim to open directories with "nvim ."
- Loading branch information
1 parent
c1adb32
commit 3b5bc69
Showing
1 changed file
with
33 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,40 @@ | ||
---@type LazySpec | ||
return { | ||
"mikavilpas/yazi.nvim", | ||
-- dir = "~/git/yazi.nvim/", | ||
dependencies = { | ||
"nvim-lua/plenary.nvim", | ||
}, | ||
event = "VeryLazy", | ||
keys = { | ||
{ | ||
"<up>", | ||
function() | ||
require("yazi").yazi() | ||
end, | ||
desc = "Open the file manager", | ||
{ | ||
"mikavilpas/yazi.nvim", | ||
-- dir = "~/git/yazi.nvim/", | ||
dependencies = { | ||
"nvim-lua/plenary.nvim", | ||
}, | ||
event = "VeryLazy", | ||
keys = { | ||
{ | ||
"<up>", | ||
function() | ||
require("yazi").yazi() | ||
end, | ||
desc = "Open the file manager", | ||
}, | ||
{ | ||
"<s-up>", | ||
function() | ||
require("yazi").yazi(nil, vim.fn.getcwd()) | ||
end, | ||
desc = "Open the file manager in the cwd", | ||
}, | ||
}, | ||
{ | ||
"<s-up>", | ||
function() | ||
require("yazi").yazi(nil, vim.fn.getcwd()) | ||
end, | ||
desc = "Open the file manager in the cwd", | ||
---@type YaziConfig | ||
opts = { | ||
open_for_directories = true, | ||
enable_mouse_support = true, | ||
}, | ||
}, | ||
---@type YaziConfig | ||
opts = { | ||
open_for_directories = true, | ||
enable_mouse_support = true, | ||
{ | ||
"nvim-neo-tree/neo-tree.nvim", | ||
opts = { | ||
filesystem = { | ||
hijack_netrw_behavior = "disabled", | ||
}, | ||
}, | ||
}, | ||
} |