You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use this function constantly in vscode, and to play it from vim's lsp:
1 - add the fallowing line into your config.lua: lvim.keys.visual_mode["<leader>l"] = ":lua vim.lsp.buf.range_code_action()<CR>"
You can replace "<leader>l" with your preference.
2 - in visual mode select the code you want to extract and call the keybind set above.
ps: I think this functionality may come by default in lunarvim :)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I use this function constantly in vscode, and to play it from vim's lsp:
1 - add the fallowing line into your config.lua:
lvim.keys.visual_mode["<leader>l"] = ":lua vim.lsp.buf.range_code_action()<CR>"
You can replace
"<leader>l"
with your preference.2 - in visual mode select the code you want to extract and call the keybind set above.
ps: I think this functionality may come by default in lunarvim :)
Beta Was this translation helpful? Give feedback.
All reactions