plugins.sniprun.enable

Whether to enable sniprun.

Type: boolean

Default: false

Example: true

Declared by:

plugins.sniprun.package

Which package to use for the sniprun plugin.

Type: package

Default: <derivation vimplugin-sniprun-1.3.13>

Declared by:

plugins.sniprun.borders

Defines the border to use for floating windows. Accepts same border values as nvim_open_win(). See :help nvim_open_win() for more info.

Plugin default: single

Type: null or string or list of string or list of list of string or raw lua code

Default: null

Declared by:

plugins.sniprun.display

You can combo different display modes as desired and with the ‘Ok’ or ‘Err’ suffix to filter only successful runs (or errored-out runs respectively)

Example:

[
  "Classic"                    # display results in the command-line  area
  "VirtualTextOk"              # display ok results as virtual text (multiline is shortened)

  # "VirtualText"              # display results as virtual text
  # "TempFloatingWindow"       # display results in a floating window
  # "LongTempFloatingWindow"   # same as above, but only long results. To use with VirtualText[Ok/Err]
  # "Terminal"                 # display results in a vertical split
  # "TerminalWithCode"         # display results and code history in a vertical split
  # "NvimNotify"               # display with the nvim-notify plugin
  # "Api"                      # return output to a programming interface
]

Plugin default: ["Classic" "VirtualTextOk"]

Type: null or (list of string)

Default: null

Declared by:

plugins.sniprun.extraOptions

These attributes will be added to the table parameter for the setup function. Typically, it can override NixVim’s default settings.

Type: attribute set of anything

Default: { }

Declared by:

plugins.sniprun.interpreterOptions

interpreter-specific options, see docs / :SnipInfo <name>

Plugin default: {}

Type: null or (attribute set)

Default: null

Declared by:

plugins.sniprun.liveDisplay

Display modes used in live_mode

Plugin default: ["VirtualTextOk"]

Type: null or (list of string)

Default: null

Declared by:

plugins.sniprun.liveModeToggle

Live mode toggle, see Usage - Running for more info.

Plugin default: "off"

Type: null or string or raw lua code

Default: null

Declared by:

plugins.sniprun.replDisable

Disable REPL-like behavior for the given interpreters

Plugin default: []

Type: null or (list of string)

Default: null

Declared by:

plugins.sniprun.replEnable

Enable REPL-like behavior for the given interpreters

Plugin default: []

Type: null or (list of string)

Default: null

Declared by:

plugins.sniprun.selectedInterpreters

use those instead of the default for the current filetype

Plugin default: []

Type: null or (list of string)

Default: null

Declared by:

plugins.sniprun.showNoOutput

You can use the same keys to customize whether a sniprun producing no output should display nothing or ‘(no output)’.

Plugin default: ["Classic" "TempFloatingWindow"]

Type: null or (list of string)

Default: null

Declared by: