generated from nvim-treesitter/module-template
-
Notifications
You must be signed in to change notification settings - Fork 242
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
It would be nice if we could have "smart" selection mode, i.e., if the textobject takes up whole line/lines, use line-wise select, else use char-wise select. E.g., for the following lua function, use line-wise select:
local function my_func()
return
endBut for this function, use char-wise select, as it does not take up a whole line at the beginning of the function:
local my_func = function()
return
endDescribe the solution you'd like
Smartly detect if a textobj should have line-wise selection or char-wise selection based on its range.
Describe alternatives you've considered
N/A
Additional context
N/A
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request