local cmd = require("cmd") local M = {} M.config = {} M.command = "Dj" local subcommands = { hello = { impl = function(_, _) vim.notify("hello from dj.nvim!") end, }, notes = { impl = function(_, _) require("dj.notes").open() end, }, close = { impl = function(_, _) require("dj.notes").close() end, }, } ---@param opts? table user configuration function M.setup(opts) M.config = vim.tbl_deep_extend("force", M.config, opts or {}) cmd.register(M.command, "DJ commands", subcommands) end return M