local jamjar = {} ---@type table jamjar._terminals = {} jamjar.make = function(name, opts) return function() local term = jamjar._terminals[name] if not term then term = require("jamjar.terminal"):new(opts) vim.schedule(function() jamjar._terminals[name] = term end) term:init() end term:toggle() end end return jamjar