local function config() vim.keymap.set("c", "", function() if vim.fn.getcmdtype() == ":" then local cmdline = vim.fn.getcmdline() vim.fn.histadd(":", cmdline) vim.schedule(function() vim.cmd("Capture " .. cmdline) end) end return "" end, { expr = true }) end local spec = { "tyru/capture.vim", config = config } return spec