iswap.nvim
Interactively select and swap function arguments, list elements, and much more. Powered by tree-sitter. (by mizlan)
nvim-treesitter-textsubjects
Location and syntax aware text objects which *do what you mean* (by RRethy)
iswap.nvim | nvim-treesitter-textsubjects | |
---|---|---|
9 | 18 | |
486 | 456 | |
- | - | |
5.6 | 4.3 | |
4 days ago | about 1 month ago | |
Lua | Scheme | |
MIT License | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
iswap.nvim
Posts with mentions or reviews of iswap.nvim.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-11-25.
-
Sibling-swap.nvim: another way to swaps arguments, array's items and attributes
Could you elaborate on how is this different from https://github.com/mizlan/iswap.nvim?
-
Moving from IDE to VIM Cheatsheet
The "move element left/right" thing you might be interested in https://github.com/mizlan/iswap.nvim perhaps?
-
I must be missing something
iswap.nvim: Swap argument with treesitter.
-
Post-operation flashing and arbitrary node swapping!
[iswap.nvim](https://github.com/mizlan/iswap.nvim) is a plugin for swapping things around interactively in your buffer (powered by tree-sitter). Since the start I've entertained the idea of a post-operation highlight flash that confirms the operation, since otherwise it is sometimes hard to tell what you just did (to make sure you did it correctly). Also, you can arbitrarily swap sibling nodes too now, thanks to a PR by u/JoseConseco_ !
-
Swapping objects with `nvim-treesitter-textobjects`
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!
-
USER FLAIRS: Apply now!
Plugin author: https://github.com/mizlan/iswap.nvim
- Bram: "Neovim has included Treesitter, which is an implementation of this. Once Vim9 is done I'll have a look at whether it is a good choice to include with Vim"
-
Custom treesitter textobjects
- https://github.com/mizlan/iswap.nvim : again uses hints for swapping treesitter nodes
-
iswap.nvim: Interactively swap function arguments, list elements, and more using tree-sitter!
iswap.nvim is a plugin that allows you to interactively swap... things! Like a lot of things: function arguments, list elements, parameters, and more! Take a look and see if it tickles your fancy!
nvim-treesitter-textsubjects
Posts with mentions or reviews of nvim-treesitter-textsubjects.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-02-17.
-
Tree-Sitter
Neovim supports treesitter based selections and "jumps", which I think are awesome
https://www.reddit.com/r/neovim/comments/r10llx/the_most_ama...
Or
https://github.com/RRethy/nvim-treesitter-textsubjects
Helix also supports them by default
- Is there a feature in Neovim similar to Emmet's balance inward and outward in VSCode?
-
Searching for plugin to provide granular treesitter visual mode navigation
nvim-treesitter-textsubjects
- Is there a plugin to select the parent block of code I am in?
-
equivalent to ci{ but for white-space languages?
You could look into treesitter-textobjects and treesitter-textsubjects: they define "smarter" blocks and function boundaries that work relatively well with python and non-parentheses code.
- Is there any neovim plugin that have 'Surround code fragments' functionality like the Jetbrains IDEs?
-
Motion to select a self-closing html/xml/jsx/tsx tag
I haven't got treesitter's own incremental selection working, but this plugin has given me basically the functionality I was after https://github.com/RRethy/nvim-treesitter-textsubjects
-
What do you use treesitter for other than highlighting?
I personally use it for an outline window for my code (aerial.nvim) and quick-selecting code blocks (nvim-treesitter-textsubjects). I've also seen but not used syntax-tree-surfer for code navigation/manipulation and refactoring.nvim for performing refactoring operations. You could also check out awesome-neovim and ctrl-f for "treesitter", though there are many other plugins out there either not on that list or that don't explicitly mention treesitter in their description.
- What are some additional text objects and motions treesitter provides?
-
FAVOURITE PLUGINS
nvim-treesitter-textsubjects while I basically love everything about Treesitter support, this plugin is just super handy when you start to think more than a second how to select the piece of code you like (in fact nothing when it is nothing too trivial from your muscle-mind)
What are some alternatives?
When comparing iswap.nvim and nvim-treesitter-textsubjects you can also consider the following projects:
nvim-ts-rainbow - Rainbow parentheses for neovim using tree-sitter. Use https://sr.ht/~p00f/nvim-ts-rainbow instead
nvim-ts-hint-textobjects
vim-treesitter
nvim-treesitter-textobjects
vim-swap - Reorder delimited items.
hop.nvim - Neovim motions on speed!
nvim-treehopper - Region selection with hints on the AST nodes of a document powered by treesitter
orgmode - Orgmode clone written in Lua for Neovim 0.9+.
treesitter-unit - A Neovim plugin to deal with treesitter units
Vim - The official Vim repository
ts-textobjects - Treesitter textobjects for neovim.
iswap.nvim vs nvim-ts-rainbow
nvim-treesitter-textsubjects vs nvim-ts-hint-textobjects
iswap.nvim vs vim-treesitter
nvim-treesitter-textsubjects vs nvim-treesitter-textobjects
iswap.nvim vs vim-swap
nvim-treesitter-textsubjects vs hop.nvim
iswap.nvim vs nvim-treehopper
nvim-treesitter-textsubjects vs orgmode
iswap.nvim vs hop.nvim
nvim-treesitter-textsubjects vs treesitter-unit
iswap.nvim vs Vim
nvim-treesitter-textsubjects vs ts-textobjects