Create extras/yazi.lua

This commit is contained in:
StellarCoder 2024-06-11 12:53:52 +05:30 committed by GitHub
parent bd29f45153
commit 8a33e87bf3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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,
},
}