add file explorer to replace default explorer
This commit is contained in:
parent
b5d3dcf1ac
commit
d3b7c61afd
6 changed files with 95 additions and 30 deletions
|
|
@ -19,7 +19,14 @@ return {
|
|||
header = vim.split(logo, "\n"),
|
||||
center = {
|
||||
-- Aligned to Mzansi Vim Essential Keybindings
|
||||
{ icon = " ", desc = " File Explorer ", key = "cd", action = "Explore" },
|
||||
{
|
||||
icon = " ",
|
||||
desc = " File Explorer ",
|
||||
key = "cd",
|
||||
action = function()
|
||||
require("yazi").yazi(nil, vim.fn.getcwd())
|
||||
end
|
||||
},
|
||||
{ icon = " ", desc = " Find Files ", key = "ff", action = "Telescope find_files" },
|
||||
{ icon = " ", desc = " Live Grep ", key = "fg", action = "Telescope live_grep" },
|
||||
{
|
||||
|
|
|
|||
29
lua/plugins/yazi.lua
Normal file
29
lua/plugins/yazi.lua
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
return {
|
||||
"mikavilpas/yazi.nvim",
|
||||
event = "VeryLazy",
|
||||
keys = {
|
||||
-- Customize these keymaps to your liking!
|
||||
{
|
||||
"<leader>cd",
|
||||
function()
|
||||
require("yazi").yazi()
|
||||
end,
|
||||
desc = "Open yazi at the current file",
|
||||
},
|
||||
{
|
||||
-- Open in the current working directory
|
||||
"<leader>cw",
|
||||
function()
|
||||
require("yazi").yazi(nil, vim.fn.getcwd())
|
||||
end,
|
||||
desc = "Open yazi in cwd",
|
||||
},
|
||||
},
|
||||
opts = {
|
||||
-- if you want to replace netrw entirely with yazi
|
||||
open_for_directories = true,
|
||||
keymaps = {
|
||||
show_help = "<f1>",
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue