treesitter-unit
hop.nvim
treesitter-unit | hop.nvim | |
---|---|---|
9 | 4 | |
149 | 25 | |
- | - | |
1.8 | 2.0 | |
over 2 years ago | over 2 years ago | |
Lua | Lua | |
The Unlicense | GNU General Public License v3.0 or later |
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.
treesitter-unit
-
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})
hop.nvim
- There is a fork of hop.nvim that is much better.
- 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"
- Hop around treesitter nodes
-
Custom treesitter textobjects
- https://github.com/IndianBoy42/hop.nvim : This is my fork of hop.nvim, i got tired of waiting for PR#123 to be merged which refactored hop.nvim to allow for more flexible ways of specifying jump targets (instead of line by line you return everything visible on the screen). This allowed me to write some extensions that use treesitter to jump to locals, like definitions, references, scopes, and any other queries you want
What are some alternatives?
jester - A sinatra-like web framework for Nim.
nvim-treesitter-textsubjects - Location and syntax aware text objects which *do what you mean*
nvim-treesitter-context - Show code context
cps - Continuation-Passing Style for Nim 🔗
iswap.nvim - Interactively select and swap function arguments, list elements, and much more. Powered by tree-sitter.
syntax-tree-surfer - A plugin for Neovim that helps you surf through your document and move elements around using the nvim-treesitter API.
vim-treesitter
nvim-treesitter-textobjec
nvim-treehopper - Region selection with hints on the AST nodes of a document powered by treesitter
cmdchallenge
ts-textobjects - Treesitter textobjects for neovim.