When I select a range and run :'<,'>CodeActionMenu I get:
But if I do this:
M.nvim_code_action_menu = {
v = {
["<leader>ca"] = { "<Cmd>CodeActionMenu<CR>", "LSP Code action" },
},
}
Then it suddenly works for the selected range. Can you explain why I'm getting an error and how to trigger the command manually in the visual mode?