rust-tools.nvim icon indicating copy to clipboard operation
rust-tools.nvim copied to clipboard

Add range support to RustCodeAction

Open IndianBoy42 opened this issue 4 years ago • 3 comments

IndianBoy42 avatar Aug 01 '21 12:08 IndianBoy42

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

simrat39 avatar Aug 01 '21 19:08 simrat39

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.

IndianBoy42 avatar Nov 30 '21 08:11 IndianBoy42

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.

ofseed avatar Dec 01 '22 11:12 ofseed