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 = false;
  default_config = {
    socket_name = "default";
    target_pane = "{last}";
  };
  dont_ask_default = false;
  no_mappings = false;
  paste_file = "$HOME/.slime_paste";
  preserve_curpos = true;
  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.

Plugin default: false

Type: null or boolean or raw lua code

Default: null

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.

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.vim-slime.settings.no_mappings

Whether to disable the default mappings.

Plugin default: false

Type: null or boolean or raw lua code

Default: null

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.

Plugin default: "$HOME/.slime_paste"

Type: null or string or raw lua code

Default: null

Declared by:

plugins.vim-slime.settings.preserve_curpos

Whether to preserve cursor position when sending a line or paragraph.

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.vim-slime.settings.target

Which backend vim-slime should use.

Plugin default: "screen"

Type: null or one of “dtach”, “kitty”, “neovim”, “screen”, “tmux”, “vimterminal”, “wezterm”, “whimrepl”, “x11”, “zellij” or raw lua code

Default: null

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: