Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/madskjeldgaard/vim-supercollider-snippets
- Owner: madskjeldgaard
- Created: 2020-08-23T18:07:58.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-04T15:01:37.000Z (11 months ago)
- Last Synced: 2024-01-04T16:26:35.588Z (11 months ago)
- Topics: neovim-plugin, supercollider, ultisnip-snippets, vim
- Language: Vim Snippet
- Homepage:
- Size: 4.76 MB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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.