Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
iswap.nvim
Interactively select and swap function arguments, list elements, and much more. Powered by tree-sitter.
Few weeks ago I installed the nvim-treesitter-textobjects plugin and after reading about overriding or extending textobjects, I decided to try to make the swap thing a little better.
First thing I did was create the queries folder in the configuration folder for Neovim. Then I created the lua folder containing the textobjects.scm file. In order to know better the node types to match against, I also installed the playground plugin.
Of course! You can find it right here.
Btw, I found the queries from https://github.com/mizlan/iswap.nvim helpful in implementing this approach. (For example I found (variable_list (_) @swappable) was not covered in your lua queries. Once again thanks, this is great fun!