Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/madskjeldgaard/faust-nvim
NeoVim plugin for writing Faust DSP code
https://github.com/madskjeldgaard/faust-nvim
faust faust-dsp lua neovim neovim-plugin nvim snippets vim
Last synced: 3 months ago
JSON representation
NeoVim plugin for writing Faust DSP code
- Host: GitHub
- URL: https://github.com/madskjeldgaard/faust-nvim
- Owner: madskjeldgaard
- Created: 2021-04-10T18:54:26.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-09T16:55:59.000Z (over 2 years ago)
- Last Synced: 2024-06-25T22:39:52.234Z (5 months ago)
- Topics: faust, faust-dsp, lua, neovim, neovim-plugin, nvim, snippets, vim
- Language: Lua
- Homepage:
- Size: 1.61 MB
- Stars: 18
- Watchers: 4
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Faust integration for NeoVim
![assets/faust2.gif](assets/faust2.gif)
![assets/examples.gif](assets/examples.gif)
- Commands for compiling and installing as SuperCollder UGens, to Teensy and others
- Fuzzy find examples
- Faust documentation is available as native vim documentation after runnning `:FaustGenerateHelp`. Then you can for example run `:h delays.lib.`
- Commands for looking up docs on the web
- Correct comment string for faust filetype
- Faust snippets (snippets.nvim format)
- Other small handdy bits and pieces# Requirements
- MacOS or linux system
- Nvim >= v0.6, there is support for 0.7 autocmd, filetype, etc.
- faust
- [nvim-fzf](https://github.com/vijaymarupudi/nvim-fzf)
- wget and tar (for help file converter)# installation
Using packer.nvim
```lua
use {
'madskjeldgaard/faust-nvim',
config = function()
require 'faust-nvim'
require 'faust-nvim'.load_snippets()
end,
requires = {
'vijaymarupudi/nvim-fzf',
'L3MON4D3/LuaSnip'
}--,
-- run = require'faust-nvim'.post_install, -- Generate documentation etc (currently doesn't work it seems)
}
```## Options
Change these options if the values are difference for your system:
```lua
-- Location of faust examples
vim.g.faust_examples_dir = "/usr/share/faust/examples"
-- Location of faust binaries
vim.g.faust2appls_dir = "/bin/"
-- Location of faust libraries
vim.g.faustlib_dir = "/usr/share/faust/"
```# Commands
## The Faust2 command
![faust2](assets/faust2.png)The plugin comes with the `:Faust2` command which will compile the file that you are in using any of the faust2appl-scripts.
You can either run `:Faust2` to get a fuzzy finder selection of the different choices and execute the chosen one, or you can autocomplete the command by writing. For example by just typing `s` and hitting tab: `:Faust2 s`. Lastly, you can invoke the directly like so: `Faust2 puredata`.
Additionally, anything after the chosen script's name is added to the invocation of the command as additional flags and arguments behind the scenes. For example, to compile SuperCollider UGen's with the `-s` (for SuperNova) option: `:Faust2 sc.py -s`.
## Help files
![delays help tag](assets/help_tags.png)By running `:FaustGenerateHelp`, faust-nvim will download a binary to convert markdown files to vim files and convert all faust library files to vim help. After this, it is possible to open the faust documentation as if it was any other vim help file, eg `:h delays`.
If you have FzfLua installed (recommended) or similar fuzzy finders that can search through help_tags in neovim, you can run commands such as `:FzfLua help_tags` and fuzzy search for the documentation, eg try typing `limiter`.