plugins.vim-slime.settings
The configuration options for vim-slime without the slime_
prefix.
For example, the following settings are equivialent to these :setglobal
commands:
foo_bar = 1
->:setglobal slime_foo_bar=1
hello = "world"
->:setglobal slime_hello="world"
some_toggle = true
->:setglobal slime_some_toggle
other_toggle = false
->:setglobal noslime_other_toggle
Type: attribute set of anything
Default:
{ }
Example:
{
bracketed_paste = 0;
default_config = {
socket_name = "default";
target_pane = "{last}";
};
dont_ask_default = 0;
no_mappings = 0;
paste_file = "$HOME/.slime_paste";
preserve_curpos = 1;
target = "screen";
vimterminal_cmd = null;
}
Declared by:
plugins.vim-slime.settings.bracketed_paste
Sometimes REPL are too smart for their own good, e.g. autocompleting a bracket that should not be autocompleted when pasting code from a file. In this case it can be useful to rely on bracketed-paste (https://cirw.in/blog/bracketed-paste). Luckily, tmux knows how to handle that. See tmux’s manual.
Type: null or (one of 0, 1) or raw lua code
Default:
null
Plugin default: 0
Declared by:
plugins.vim-slime.settings.default_config
Pre-filled prompt answer.
Examples:
-
tmux
:{ socket_name = "default"; target_pane = "{last}"; }
-
zellij
:{ session_id = "current"; relative_pane = "right"; }
Type: null or (attribute set of (string or raw lua code))
Default:
null
Declared by:
plugins.vim-slime.settings.dont_ask_default
Whether to bypass the prompt and use the specified default configuration options.
Type: null or (one of 0, 1) or raw lua code
Default:
null
Plugin default: 0
Declared by:
plugins.vim-slime.settings.no_mappings
Whether to disable the default mappings.
Type: null or (one of 0, 1) or raw lua code
Default:
null
Plugin default: 0
Declared by:
plugins.vim-slime.settings.paste_file
Required to transfer data from vim to GNU screen or tmux. Setting this explicitly can work around some occasional portability issues. whimrepl does not require or support this setting.
Type: null or string or raw lua code
Default:
null
Plugin default: "$HOME/.slime_paste"
Declared by:
plugins.vim-slime.settings.preserve_curpos
Whether to preserve cursor position when sending a line or paragraph.
Type: null or (one of 0, 1) or raw lua code
Default:
null
Plugin default: 1
Declared by:
plugins.vim-slime.settings.target
Which backend vim-slime should use.
Type: null or one of “dtach”, “kitty”, “neovim”, “screen”, “tmux”, “vimterminal”, “wezterm”, “whimrepl”, “x11”, “zellij” or raw lua code
Default:
null
Plugin default: "screen"
Declared by:
plugins.vim-slime.settings.vimterminal_cmd
The vim terminal command to execute.
Type: null or string or raw lua code
Default:
null
Declared by: