supercollider nvim

This commit is contained in:
Anish L 2022-08-10 01:33:20 +10:00
parent d6f9397f59
commit e330b8c8a8

View file

@ -646,8 +646,28 @@ in
require('leap').set_default_keymaps() require('leap').set_default_keymaps()
-- supercollider -- supercollider
require('scnvim').setup() local scnvim = require 'scnvim'
require("luasnip").add_snippets("supercollider", require("scnvim/utils").get_snippets()) local map = scnvim.map
local map_expr = scnvim.map_expr
scnvim.setup {
keymaps = {
['<localleader>e'] = map('editor.send_line', {'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'),
}
}
-- require("luasnip").add_snippets("supercollider", require("scnvim/utils").get_snippets())
EOF EOF
''; '';