Live coding with tidal and sonic pi, snippets for diary, toggleterm
Live Coding: - added plugin for sonic-pi (though commented out) - added plugin for tidal Snippets: - added path luasnippets to loaderdefinitions - added luasnippet for asciidoc (diaentry, diahead Options: - no longer show tabline Plugins: - toggleterm with a binding so <C-`>
This commit is contained in:
@@ -33,6 +33,7 @@ require("lazy").setup({
|
||||
version = "v2.*",
|
||||
config = function()
|
||||
require("luasnip.loaders.from_snipmate").lazy_load()
|
||||
require("luasnip.loaders.from_lua").lazy_load()
|
||||
end,
|
||||
},
|
||||
|
||||
@@ -445,4 +446,58 @@ require("lazy").setup({
|
||||
require('gitsigns').setup()
|
||||
end,
|
||||
},
|
||||
|
||||
-- -- Live Coding: sonic-pi music programming
|
||||
-- {
|
||||
-- 'magicmonty/sonicpi.nvim',
|
||||
-- -- broken if used here, setup called further below
|
||||
-- -- config = function()
|
||||
-- -- require('sonicpi').setup()
|
||||
-- -- end,
|
||||
-- dependencies = {
|
||||
-- 'hrsh7th/nvim-cmp',
|
||||
-- 'kyazdani42/nvim-web-devicons'
|
||||
-- },
|
||||
-- },
|
||||
|
||||
-- easy term on a shortcut
|
||||
{
|
||||
"akinsho/toggleterm.nvim",
|
||||
config = true,
|
||||
keys = {
|
||||
{
|
||||
"<C-`>",
|
||||
":ToggleTerm<CR>",
|
||||
desc = "Toggle terminal",
|
||||
},
|
||||
{
|
||||
"<C-`>",
|
||||
"<C-\\><C-n>:ToggleTerm<CR>",
|
||||
mode = 't',
|
||||
desc = "Toggle terminal",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
-- Live Coding: tidal cycles support
|
||||
{
|
||||
'tidalcycles/vim-tidal',
|
||||
config = function()
|
||||
vim.g.tidal_sc_enable = 1
|
||||
end,
|
||||
},
|
||||
})
|
||||
|
||||
-- require('sonicpi').setup({
|
||||
-- server_dir = '/opt/sonic-pi/app/server',
|
||||
-- mappings = {
|
||||
-- { 'n', '<leader>d', ':SonicPiStartDaemon<CR>', { desc = 'Sonic Pi: start daemon' } },
|
||||
-- { 'n', '<leader>s', require('sonicpi.remote').stop, { desc = 'Sonic Pi: stop' } },
|
||||
-- { 'i', '<M-s>', require('sonicpi.remote').stop, { desc = 'Sonic Pi: stop' } },
|
||||
-- { 'n', '<leader>r', require('sonicpi.remote').run_current_buffer, { desc = 'Sonic Pi: run' } },
|
||||
-- { 'i', '<M-r>', require('sonicpi.remote').run_current_buffer, { desc = 'Sonic Pi: run' } },
|
||||
-- { 'n', '<leader>R', ':SonicPiSendBuffer<CR>', { desc = 'Sonic Pi: send buffer' } },
|
||||
-- { 'i', '<M-R>', ':SonicPiSendBuffer<CR>', { desc = 'Sonic Pi: send buffer' } },
|
||||
-- },
|
||||
-- single_file = true,
|
||||
-- })
|
||||
|
||||
Reference in New Issue
Block a user