Coder Social home page Coder Social logo

faust-nvim's Introduction

Faust integration for NeoVim

assets/faust2.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.5
  • faust
  • nvim-fzf

installation

Using vim-plug

" faust syntax and filetype
Plug 'gmoe/vim-faust'

" Other faust things
Plug 'madskjeldgaard/faust-nvim'

Using packer.nvim

use {
    'madskjeldgaard/faust-nvim',
        ft = "faust", -- only load plugin on .dsp files
		-- run = require'faust-nvim'.post_install, -- Generate documentation etc (currently doesn't work it seems)
        config = function()
            require 'faust-nvim'.setup()
        end,
        requires = {
			'gmoe/vim-faust',
			'vijaymarupudi/nvim-fzf'
		}
}

Setup

call the .setup function via lua:

require 'faust-nvim'.setup()

And then if you want to use the snippets with snippets.nvim, import the snippets to your global snippets-table:

require'snippets'.snippets["faust"] = require'faust-nvim/snippets'

The Faust2 command

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

faust-nvim's People

Contributors

madskjeldgaard avatar salkin-mada avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.