Supercollider vim snippets plugin

EDIT:

Hello everyone, I made a snippet plugin for Vim/UltiSnips which adds superpowers for SuperCollider and scdoc files:

1 Like

Here it is in action with scvim syntax colouring!

Made this into a plugin now:

2 Likes

The plugin now has python interpolation which populates most snippets with nice and/or fun random values/suggestions to help your creativity. So for example each time you make a pbind using pbind<tab> it will populate it with random list patterns, every time you make an ndef with ndef<tab> it will create a randomly named (after a fruit) Ndef with a random sound generator and LFO.

4 Likes

ooh, that’s a great idea!

So cool …!

Interesting. I installed it for Nvim, but it doesn’t seems to work. I’m not getting the suggestions as seen on the videos.

Installation seems to went well on Debian. Maybe it’s something with ultisnips, which I don’t get yet. I only get suggestions when typing SinOsc.ar TAB.

Hi Flower, have you tried running :checkhealth in Nvim? That might give you some pointers.

thx.
Everything looks good, some python related warnings though. I’v no clue why it is complaining about pynvim. python3-pynvim is the latest version I’ve on my Debian testing system.

Python 2 provider (optional)

  • WARNING: No Python executable found that can import neovim. Using the first available executable for diagnostics.
  • ERROR: Python provider error:
    • ADVICE:
      • provider/pythonx: Could not load Python 2:
        python2 not found in search path or not executable.
        /usr/bin/python2.7 does not have the “neovim” module. :help provider-python
        python2.6 not found in search path or not executable.
        python not found in search path or not executable.
  • INFO: Executable: Not found

Python 3 provider (optional)

  • INFO: Using: g:python3_host_prog = “/usr/bin/python3”
  • INFO: Executable: /usr/bin/python3
  • INFO: Python version: 3.8.6
  • INFO: pynvim version: 0.4.1 (outdated; from /usr/lib/python3/dist-packages/neovim)
  • WARNING: Latest pynvim is NOT installed: 0.4.2

Ok, got that one fixed: python3 -m pip install --user --upgrade pynvim

No, improvements for this snippets plugin though.