plugins.git-worktree.settings
Options provided to the require('git-worktree').setup
function.
Type: attribute set of anything
Default:
{ }
Example:
{
autopush = true;
change_directory_command = "z";
clear_jumps_on_change = false;
update_on_change = false;
}
Declared by:
plugins.git-worktree.settings.autopush
When creating a new worktree, it will push the branch to the upstream then perform a git rebase
.
Type: null or boolean or raw lua code
Default:
null
Plugin default: false
Declared by:
plugins.git-worktree.settings.change_directory_command
The vim command used to change to the new worktree directory.
Set this to tcd
if you want to only change the pwd
for the current vim Tab.
Type: null or string or raw lua code
Default:
null
Plugin default: "cd"
Declared by:
plugins.git-worktree.settings.clear_jumps_on_change
If set to true every time you switch branches, your jumplist will be cleared so that you don’t accidentally go backward to a different branch and edit the wrong files.
Type: null or boolean or raw lua code
Default:
null
Plugin default: true
Declared by:
plugins.git-worktree.settings.update_on_change
If set to true updates the current buffer to point to the new work tree if the file is found in the new project. Otherwise, the following command will be run.
Type: null or boolean or raw lua code
Default:
null
Plugin default: true
Declared by:
plugins.git-worktree.settings.update_on_change_command
The vim command to run during the update_on_change
event.
Note, that this command will only be run when the current file is not found in the new worktree.
This option defaults to e .
which opens the root directory of the new worktree.
Type: null or string or raw lua code
Default:
null
Plugin default: "e ."
Declared by: