Skip to content

Instantly share code, notes, and snippets.

@masato3
Last active June 9, 2026 15:19
Show Gist options
  • Select an option

  • Save masato3/fa818cf5576f515e6327cbf6f68e85bc to your computer and use it in GitHub Desktop.

Select an option

Save masato3/fa818cf5576f515e6327cbf6f68e85bc to your computer and use it in GitHub Desktop.
Neovim plugin yazi.nvim
return {
"mikavilpas/yazi.nvim",
version = "*",
cmd = "Yazi",
dependencies = "nvim-lua/plenary.nvim",
-- https://github.com/mikavilpas/yazi.nvim/issues/802
init = function()
vim.g.loaded_netrwPlugin = 1
end,
opts = {
-- NOTE: Windowsだと動かず
highlight_groups = {
hovered_buffer_in_same_directory = { bg = "#363a4f" },
},
-- NOTE: Windowsだと設定しても`f1`しか動かない
keymaps = {
show_help = "<f1>",
open_file_in_vertical_split = "<C-v>",
open_file_in_horizontal_split = "<C-x>",
open_file_in_tab = "<C-t>",
grep_in_directory = "<C-s>",
replace_in_directory = "<C-g>",
cycle_open_buffers = "<tab>",
copy_relative_path_to_selected_files = "<C-y>",
send_to_quickfix_list = "<C-q>",
change_working_directory = "<C-\\>",
open_and_pick_window = "<C-o>",
}
},
vim.keymap.set("n", "<leader>yo", "<cmd>Yazi<cr>", { desc = "yazi: open current" }),
vim.keymap.set("n", "<leader>yc", "<cmd>Yazi cwd<cr>", { desc = "yazi: open cwd" }),
vim.keymap.set("n", "<leader>yl", "<cmd>Yazi toggle<cr>", { desc = "yazi: last session" }),
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment