Open srghma opened 2 months ago
This plugin is (AFAIK) nvim-treesitter-textobjects. This plugin contains the query that matches e.g. parameters.outer
. It does not have a query for SQL. This is why the textobject cannot be matched.
nvim-treesitter-textobjects needs to have a textobjects.scm file holding queries that match the AST for SQL files.
I use
https://github.com/AstroNvim/AstroNvim/blob/86f153cc426a32f86f8102368b96107c39e69e0c/lua/astronvim/plugins/treesitter.lua#L56C32-L57
and
in file
when I on
[u]sername
and dovia
actual - no action
expected - select
username text
when I on
[u]sername
and dovaa
actual - no action
expected - select
\n username text,\n