local M = {} --- Create custom command ---@param cmd string The command name ---@param func function The function to execute ---@param opt table The options M.create_cmd = function(cmd, func, opt) opt = vim.tbl_extend('force', { desc = 'CopilotChat.nvim ' .. cmd }, opt or {}) vim.api.nvim_create_user_command(cmd, func, opt) end return M