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: 3 months 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 (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-01-04T15:01:37.000Z (over 2 years ago)
- Last Synced: 2024-01-04T16:26:35.588Z (over 2 years 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

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)

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

## 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.