plugins.arrow.settings
Options provided to the require('arrow').setup
function.
Type: attribute set of anything
Default:
{ }
Example:
{
always_show_path = false;
custom_actions = {
open = "function(target_file_name, current_file_name) end";
split_horizontal = "function(target_file_name, current_file_name) end";
split_vertical = "function(target_file_name, current_file_name) end";
};
full_path_list = [
"update_stuff"
];
global_bookmarks = false;
hide_handbook = false;
index_keys = "123456789zxcbnmZXVBNM,afghjklAFGHJKLwrtyuiopWRTYUIOP";
leader_key = ";";
mappings = {
clear_all_items = "C";
delete_mode = "d";
edit = "e";
next_item = "]";
open_horizontal = "-";
open_vertical = "v";
prev_item = "[";
quit = "q";
remove = "x";
toggle = "s";
};
per_buffer_config = {
lines = 4;
satellite = {
enable = false;
overlap = true;
priority = 1000;
};
sort_automatically = true;
zindex = 10;
};
save_key = "cwd";
save_path = ''
function()
return vim.fn.stdpath("cache") .. "/arrow"
end
'';
separate_by_branch = false;
separate_save_and_remove = false;
show_icons = true;
window = {
border = "double";
col = "auto";
height = "auto";
row = "auto";
width = "auto";
};
}
Declared by:
plugins.arrow.settings.always_show_path
If true will show path.
Plugin default: false
Type: null or boolean or raw lua code
Default:
null
Declared by:
plugins.arrow.settings.full_path_list
Filenames on this list will ALWAYS show the file path too
Plugin default: [ "update_stuff" ]
Type: null or (list of (string or raw lua code))
Default:
null
Declared by:
plugins.arrow.settings.global_bookmarks
If true arrow will save files globally (ignores separate_by_branch
).
Plugin default: false
Type: null or boolean or raw lua code
Default:
null
Declared by:
plugins.arrow.settings.hide_handbook
If true to hide the shortcuts on menu.
Plugin default: false
Type: null or boolean or raw lua code
Default:
null
Declared by:
plugins.arrow.settings.index_keys
Keys mapped to bookmark index.
Plugin default: "123456789zxcbnmZXVBNM,afghjklAFGHJKLwrtyuiopWRTYUIOP"
Type: null or string or raw lua code
Default:
null
Declared by:
plugins.arrow.settings.leader_key
The leader key to use for arrow. Will precede all mappings. Recommended to be a single character.
Plugin default: ";"
Type: null or string or raw lua code
Default:
null
Declared by:
plugins.arrow.settings.save_key
What will be used as root to save the bookmarks. Can be also git_root
.
Plugin default: "cwd"
Type: null or string or raw lua code
Default:
null
Declared by:
plugins.arrow.settings.save_path
Function used to determine where to save arrow data.
Plugin default:
function()
return vim.fn.stdpath("cache") .. "/arrow"
end
Type: null or lua function string
Default:
null
Declared by:
plugins.arrow.settings.separate_by_branch
If true will split bookmarks by git branch.
Plugin default: false
Type: null or boolean or raw lua code
Default:
null
Declared by:
plugins.arrow.settings.separate_save_and_remove
If true will remove the toggle and create the save/remove keymaps.
Plugin default: false
Type: null or boolean or raw lua code
Default:
null
Declared by:
plugins.arrow.settings.show_icons
If true will show icons.
Plugin default: false
Type: null or boolean or raw lua code
Default:
null
Declared by:
plugins.arrow.settings.window
Controls the appearance and position of an arrow window.
See :h nvim_open_win()
for all options.
Plugin default:
{
relative = "editor";
width = "auto";
height = "auto";
row = "auto";
col = "auto";
style = "minimal";
border = "single";
}
Type: null or (attribute set of (anything or raw lua code))
Default:
null
Declared by: