2024-08-25 23:44:07 -07:00
|
|
|
(local nvim (require :lib/nvim))
|
|
|
|
|
|
|
|
(nvim.g :tidal_target "terminal")
|
|
|
|
(nvim.g :scnvim_snippet_format "luasnip")
|
2024-08-26 23:09:08 -07:00
|
|
|
|
|
|
|
; -- supercollider
|
|
|
|
; local scnvim = require 'scnvim'
|
|
|
|
; local map = scnvim.map
|
|
|
|
; local map_expr = scnvim.map_expr
|
|
|
|
; scnvim.setup {
|
|
|
|
; keymaps = {
|
|
|
|
; ['<localleader>e'] = map('editor.send_line', {'i', 'n'}),
|
|
|
|
; ['<localleader>s'] = map_expr('CmdPeriod.run', {'i', 'n'}),
|
|
|
|
; ['<localleader>t'] = {
|
|
|
|
; map('editor.send_block', {'i', 'n'}),
|
|
|
|
; map('editor.send_selection', 'x'),
|
|
|
|
; },
|
|
|
|
; ['<CR>'] = map('postwin.toggle'),
|
|
|
|
; ['<M-CR>'] = map('postwin.toggle', 'i'),
|
|
|
|
; ['<M-L>'] = map('postwin.clear', {'n', 'i'}),
|
|
|
|
; ['<C-k>'] = map('signature.show', {'n', 'i'}),
|
|
|
|
; ['<F12>'] = map('sclang.hard_stop', {'n', 'x', 'i'}),
|
|
|
|
; ['<leader>st'] = map('sclang.start'),
|
|
|
|
; ['<leader>sk'] = map('sclang.recompile'),
|
|
|
|
; ['<F1>'] = map_expr('s.boot'),
|
|
|
|
; ['<F2>'] = map_expr('s.meter'),
|
|
|
|
; }
|
|
|
|
; }
|
|
|
|
; -- You gotta run :SCNvimGenerateAssets for this first
|
|
|
|
; -- require("luasnip").add_snippets("supercollider", require("scnvim/utils").get_snippets())
|