Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/madskjeldgaard/vim-supercollider-snippets

Vim plugin adding snippet files for SuperCollider filetypes
https://github.com/madskjeldgaard/vim-supercollider-snippets

neovim-plugin supercollider ultisnip-snippets vim

Last synced: 2 days ago
JSON representation

Vim plugin adding snippet files for SuperCollider filetypes

Awesome Lists containing this project

README

        

# [EXPERIMENTAL] vim-supercollider-snippets
![snippets in action](python-interpolation-pattern-bonanza.gif)

Snippet files for SuperCollider filetypes to be used with the UltiSnips plugin.

Covers both normal supercollider files .

See `:h supercollider-snippets` for more info.

# Experimental
This plugin is in an experimental state and not recommended for use at the moment. It has some loopback problems with the python interpolation causing python to self implode and nvim to crash from time to time.

## See also

- [scnvim](https://github.com/davidgranstrom/scnvim) / [scvim](https://github.com/supercollider/scvim)
- [vim-scdoc-snippets](https://github.com/madskjeldgaard/vim-scdoc-snippets)
- [supercollider-h4x-nvim](https://github.com/madskjeldgaard/supercollider-h4x-nvim)

## Python interpolation
The snippets make extensive use of Python interpolation to do various things.

Mostly this is used to put random values in classes every time the snippet is expanded.

For example with pattern classes always suggesting random values (that you can then choose to delete if you want to)
![sc snips pattern example 1](python-random-pbind.gif)

Or always initialising an Ndef with a random fruit name and random contents:

![python ndef named](python-random-named-ndef.gif)

## Requirements
* Python 3
* [UltiSnips](https://github.com/SirVer/ultisnips)
* [SuperCollider](https://github.com/supercollider/supercollider)
* [scvim](https://github.com/supercollider/scvim) or [scnvim](github.com/davidgranstrom/scnvim)

## Install
To install using vim-plug
1. Add this to your init.vim / .vimrc:
`Plug 'madskjeldgaard/vim-supercollider-snippets'`
2. Open Vim and run the command `:PlugInstall`

Otherwise, follow your plugin manager's instructions.