ThePrimeagen / refactoring.nvim

The Refactoring library based off the Refactoring book by Martin Fowler
MIT License
2.75k stars 80 forks source link

Feature request: visual selection a range and perform debug_print_var #447

Open xzbdmw opened 6 months ago

xzbdmw commented 6 months ago

And it will insert print below every variable inside the visual selection range

TheLeoP commented 6 months ago

The current behavior of debug_print_var is to debug print everything visually selected. This allows users to debug print expressions, not only variables.

A PR adding this feature would be welcome. It wouldn't need to modify debug_print_var, but add a new function for this instead.