iswap.nvim
Interactively select and swap function arguments, list elements, and much more. Powered by tree-sitter. (by mizlan)
treesitter-unit
A Neovim plugin to deal with treesitter units (by David-Kunz)
iswap.nvim | treesitter-unit | |
---|---|---|
9 | 9 | |
486 | 149 | |
- | - | |
5.6 | 1.8 | |
4 days ago | over 2 years ago | |
Lua | Lua | |
MIT License | The Unlicense |
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!
treesitter-unit
Posts with mentions or reviews of treesitter-unit.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-07-30.
-
paredit.vim – Paredit Mode: Structured Editing of Lisp S-Expressions
It's also relatively easy to write plugins based on the parsed AST. I wrote treesitter-unit[1] making it easy to select/modify the subtree of the selection.
[1]: https://github.com/David-Kunz/treesitter-unit
-
What do you use treesitter for other than highlighting?
I built a plugin to select units of tree-sitter objects https://github.com/David-Kunz/treesitter-unit
- USER FLAIRS: Apply now!
-
How to paste inline the content I deleted/yanked with x/d/dd/y/yy instead of pasting one line below?
To delete/yank the node, the combination would be `diu`, using this plugin: https://github.com/David-Kunz/treesitter-unit
- Nim Version 1.6 Released
-
Custom treesitter textobjects
Hi, I also think treesitter-textobjects are a bit overspecific, that's why I created https://github.com/David-Kunz/treesitter-unit/ .
-
Video: Let's create a Neovim plugin using Treesitter and Lua
In this video I create a Neovim plugin called 'treesitter-unit' using Lua. You can find the final plugin here: https://github.com/David-Kunz/treesitter-unit/
-
Plugin: treesitter-unit
I tried it with operator mode maps and it works perfectly! I updated the README to include: vim.api.nvim_set_keymap('o', 'x', ':lua require"treesitter-unit".select()', {noremap=true})
What are some alternatives?
When comparing iswap.nvim and treesitter-unit 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
jester - A sinatra-like web framework for Nim.
vim-treesitter
nvim-treesitter-textsubjects - Location and syntax aware text objects which *do what you mean*
vim-swap - Reorder delimited items.
cps - Continuation-Passing Style for Nim 🔗
nvim-treehopper - Region selection with hints on the AST nodes of a document powered by treesitter
syntax-tree-surfer - A plugin for Neovim that helps you surf through your document and move elements around using the nvim-treesitter API.
hop.nvim - Neovim motions on speed!
nvim-treesitter-textobjec
cmdchallenge
iswap.nvim vs nvim-ts-rainbow
treesitter-unit vs jester
iswap.nvim vs vim-treesitter
treesitter-unit vs nvim-treesitter-textsubjects
iswap.nvim vs vim-swap
treesitter-unit vs cps
iswap.nvim vs nvim-treehopper
treesitter-unit vs syntax-tree-surfer
iswap.nvim vs hop.nvim
treesitter-unit vs nvim-treesitter-textobjec
iswap.nvim vs nvim-treesitter-textsubjects
treesitter-unit vs cmdchallenge