Open Andrew15-5 opened 1 year ago
When I select a range and run :'<,'>CodeActionMenu I get:
:'<,'>CodeActionMenu
E481: No range allowed
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?
When I select a range and run
:'<,'>CodeActionMenu
I get:But if I do this:
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?