michaelb / sniprun

A neovim plugin to run lines/blocs of code (independently of the rest of the file), supporting multiples languages
MIT License
1.49k stars 47 forks source link

Allow setting sniprun binary location #205

Closed nikkicoon closed 1 year ago

nikkicoon commented 1 year ago

If I package the application part of the plugin and it installs to my $PATH, I have to symlink the binary into the fixed location of the plugin. It would be good if you'd allow overriding the location via a config option.

michaelb commented 1 year ago

Currently in dev branch :-), this wasn't too hard.

Set the (undocumented for now) binary_path config option

require('sniprun').setup({
binary_path="/path/to/your/sniprun",
})

Simply specifying 'sniprun' and having the binary on your $PATH also works.

You can try it out now by setting your plugin manager to track the 'dev' branch of this repo, or wait for the next release (that I'll publish in less than 15 days I think)