rust-tools.nvim
rust-tools.nvim copied to clipboard
Add range support to RustCodeAction
do a vnoremap of this command:
<cmd>lua vim.lsp.buf.range_code_action()<CR>
and then select the lines in visual mode and press your mapping
Now that you have a custom command :RustCodeAction for the nested menu functionality of rust-analyzer, I switched to that but it doesn't seem to properly switch to range_code_action in visual mode.
It seems that after the last refactor, rust-tools provides a custom UI component for code action, but range code action still can't support it.