mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-10 09:14:31 +02:00
plugins/yazi: init
This commit is contained in:
parent
c46bd820ad
commit
4852f94f8c
3 changed files with 228 additions and 0 deletions
67
tests/test-sources/plugins/filetrees/yazi.nix
Normal file
67
tests/test-sources/plugins/filetrees/yazi.nix
Normal file
|
@ -0,0 +1,67 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.yazi.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.yazi = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
log_level = "off";
|
||||
open_for_directories = false;
|
||||
use_ya_for_events_reading = false;
|
||||
use_yazi_client_id_flag = false;
|
||||
enable_mouse_support = false;
|
||||
|
||||
open_file_function.__raw = ''
|
||||
function(chosen_file)
|
||||
vim.cmd(string.format("edit %s", vim.fn.fnameescape(chosen_file)))
|
||||
end
|
||||
'';
|
||||
|
||||
clipboard_register = "*";
|
||||
|
||||
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>";
|
||||
};
|
||||
|
||||
set_keymappings_function = null;
|
||||
|
||||
hooks = {
|
||||
yazi_opened.__raw = ''
|
||||
function(preselected_path, yazi_buffer_id, config)
|
||||
end
|
||||
'';
|
||||
|
||||
yazi_closed_successfully.__raw = ''
|
||||
function(chosen_file, config, state)
|
||||
end
|
||||
'';
|
||||
|
||||
yazi_opened_multiple_files.__raw = ''
|
||||
function(chosen_files)
|
||||
vim.cmd("args" .. table.concat(chosen_files, " "))
|
||||
end
|
||||
'';
|
||||
};
|
||||
|
||||
highlight_groups = {
|
||||
hovered_buffer = null;
|
||||
};
|
||||
|
||||
floating_window_scaling_factor = 0.9;
|
||||
yazi_floating_window_winblend = 0;
|
||||
yazi_floating_window_border = "rounded";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue