mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
Create extras/yazi.lua
This commit is contained in:
parent
bd29f45153
commit
8a33e87bf3
1 changed files with 33 additions and 0 deletions
33
lua/lazyvim/plugins/extras/editor/yazi.lua
Normal file
33
lua/lazyvim/plugins/extras/editor/yazi.lua
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
return {
|
||||
"mikavilpas/yazi.nvim",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
},
|
||||
enabled = function()
|
||||
if vim.fn.executable("yazi") == 1 then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
end,
|
||||
lazy = true,
|
||||
keys = {
|
||||
{
|
||||
"<C-a>",
|
||||
function()
|
||||
require("yazi").yazi()
|
||||
end,
|
||||
desc = "Open the file manager",
|
||||
},
|
||||
{
|
||||
"<leader>a",
|
||||
function()
|
||||
require("yazi").yazi(nil, vim.fn.getcwd())
|
||||
end,
|
||||
desc = "Open yazi in CWD",
|
||||
},
|
||||
},
|
||||
opts = {
|
||||
open_for_directories = true,
|
||||
floating_window_scaling_factor = 1,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue