-
-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
First, thanks for your work on this plugin, I use it habitually at this point.
There's one thing I'm missing though, but I have no idea if it's possible.
With this keybind
onoremap m :lua require('tsht').nodes<cr>
Consider this line
local cursor_node = root:descendant_for_range(lnum, col, lnum, col)
cursor here ^
Here, let's say I'd like to delete lnum
under the cursor with dma
in normal mode, I get this
local cursor_node = root:descendant_for_range(, col, lnum, col)
cursor here ^
But what I'd really like, is deleting all the way up to the next argument like this
local cursor_node = root:descendant_for_range(col, lnum, col)
cursor here ^
I might give this a shot myself, but an approach could be to pass an argument to the nodes
function, as to whether or not it should delete only around the current or up to the next node
Metadata
Metadata
Assignees
Labels
No labels