Closed
Description
Describe the bug
Code action keybinding vim.lsp.buf.code_action
is not available in visual mode. This prevents using refactoring functionality such as "extract selected code into function". Is this intentional? If it is not, I can quickly send a PR. I searched for this on the issues and pull requests but couldn't find anything matching.
To Reproduce
- Select any code block in visual mode in a buffer with an LSP client running
- Use default keybinding
<leader>ca
for code action - Selected code is deleted and mode is set to insert mode
Desktop
- OS: Linux
- Terminal: Alacritty
Neovim Version
NVIM v0.10.0
Build type: RelWithDebInfo
LuaJIT 2.1.1713773202
Run "nvim -V1 -v" for more info
Metadata
Metadata
Assignees
Labels
No labels