Skip to content
This repository was archived by the owner on Dec 11, 2023. It is now read-only.
This repository was archived by the owner on Dec 11, 2023. It is now read-only.

Can't run CodeActionMenu in visual mode #67

@Andrew15-5

Description

@Andrew15-5

When I select a range and run :'<,'>CodeActionMenu I get:

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions