Skip to content

Is there a way to have multiple view options when executing? #181

Answered by michaelb
dachmu asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately, every existing solution has a caveat.

The best I can propose without having to code something from scratch would be this:

it's possible to toggle an alternate configurations on and off, like so:

:lua require('sniprun').setup({ option={"i want", "to change"} })

:lua require('sniprun').setup({ option={"to the old one"} })

and bind that to commands (on/off, or even better , an unique command with a pseudo-global switch; A slightly more compact version would have to be a full-fledged function that you would have to put into your (lua) configuration and bind a command/keymap on it.

function toggle()
    local s = require'sniprun'.config_values
    if s.switch_configs == nil then --

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dachmu
Comment options

@michaelb
Comment options

Answer selected by dachmu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants