nvim-treesitter-textsubjects
Location and syntax aware text objects which *do what you mean* (by RRethy)
targets.vim
Vim plugin that provides additional text objects (by wellle)
nvim-treesitter-textsubjects | targets.vim | |
---|---|---|
18 | 48 | |
461 | 2,512 | |
- | - | |
4.3 | 0.0 | |
about 1 month ago | 6 months ago | |
Scheme | Vim Script | |
Apache License 2.0 | MIT License |
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.
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)
targets.vim
Posts with mentions or reviews of targets.vim.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-07-01.
-
How to move really efficiently in Vim?
targets is nice too.
-
Two Weeks into Vim: A Transformation
The thing that has the biggest impact on me is ci”, ca”, da”, etc.. so I suggested getting used to using those.. and then you can get more pedantic with it using https://github.com/wellle/targets.vim
-
Is there a shorcut to select words in quotes including the quotes?
I do recommend getting, targets.vim https://github.com/wellle/targets.vim .. which unlocks the n(ext) and l(ast) verbs(?) ..ahhhh it’s REALLY REALLY good, I use 2in” like a lot
-
Text-object selection works forward, but not backwards, and I'm curious about that
In fact, as /u/Chillbrosaurus_Rex points out, there's a plugin, targets.vim, that expands on Vim's built-in text objects, and one of the things it does is to provide this kind of forward and reverse direction functionality.
- Installing argtextobj.vim
- How to delete inside backtick pairs, e.g JS template strings.
-
neovim plugins that have improved your workflow
Hey, I use targets.vim, how does it compare with that?
-
Leap.nvim: Neovim’s Answer to the Mouse
You might benefit from targets.vim, it works well with your thought process. It adds a bunch of new really useful editing targets (which should be builtin imo).
https://github.com/wellle/targets.vim
-
Is there a textobject for `object.` in `object.property.another`?
Thanks for the through explanation. I has seen that and considered using it in the past. Can I ask how it compares to https://github.com/wellle/targets.vim? Would you consider mini.ai a replacement or complementary?
-
Why does ci" work from elsewhere on a line, but it doesn't for ci[ , ci{ ?
This is provided by targets.vim, along with a bunch of other useful text objects.
What are some alternatives?
When comparing nvim-treesitter-textsubjects and targets.vim you can also consider the following projects:
nvim-ts-hint-textobjects
nvim-treesitter-textobjects
wilder.nvim - A more adventurous wildmenu
hop.nvim - Neovim motions on speed!
todoist.nvim - A todoist extension for neovim
orgmode - Orgmode clone written in Lua for Neovim 0.9+.
Neovim-from-scratch - 📚 A Neovim config designed from scratch to be understandable
treesitter-unit - A Neovim plugin to deal with treesitter units
harpoon
ts-textobjects - Treesitter textobjects for neovim.
paq-nvim - 🌚 Neovim package manager
nvim-treesitter-textsubjects vs nvim-ts-hint-textobjects
targets.vim vs nvim-treesitter-textobjects
nvim-treesitter-textsubjects vs nvim-treesitter-textobjects
targets.vim vs wilder.nvim
nvim-treesitter-textsubjects vs hop.nvim
targets.vim vs todoist.nvim
nvim-treesitter-textsubjects vs orgmode
targets.vim vs Neovim-from-scratch
nvim-treesitter-textsubjects vs treesitter-unit
targets.vim vs harpoon
nvim-treesitter-textsubjects vs ts-textobjects
targets.vim vs paq-nvim