Skip to content

Commit

Permalink
feat(nvim): allow yazi.nvim to open directories with "nvim ."
Browse files Browse the repository at this point in the history
  • Loading branch information
mikavilpas committed Apr 26, 2024
1 parent c1adb32 commit 3b5bc69
Showing 1 changed file with 33 additions and 23 deletions.
56 changes: 33 additions & 23 deletions .config/nvim/lua/plugins/my-file-manager.lua
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",
},
},
},
}

0 comments on commit 3b5bc69

Please sign in to comment.