(local nvim (require :lib/nvim)) (nvim.g :tidal_target "terminal") (nvim.g :scnvim_snippet_format "luasnip") ; -- supercollider ; local scnvim = require 'scnvim' ; local map = scnvim.map ; local map_expr = scnvim.map_expr ; scnvim.setup { ; keymaps = { ; ['e'] = map('editor.send_line', {'i', 'n'}), ; ['s'] = map_expr('CmdPeriod.run', {'i', 'n'}), ; ['t'] = { ; map('editor.send_block', {'i', 'n'}), ; map('editor.send_selection', 'x'), ; }, ; [''] = map('postwin.toggle'), ; [''] = map('postwin.toggle', 'i'), ; [''] = map('postwin.clear', {'n', 'i'}), ; [''] = map('signature.show', {'n', 'i'}), ; [''] = map('sclang.hard_stop', {'n', 'x', 'i'}), ; ['st'] = map('sclang.start'), ; ['sk'] = map('sclang.recompile'), ; [''] = map_expr('s.boot'), ; [''] = map_expr('s.meter'), ; } ; } ; -- You gotta run :SCNvimGenerateAssets for this first ; -- require("luasnip").add_snippets("supercollider", require("scnvim/utils").get_snippets())