nvim-treehopper
nvim-treesitter-textsubjects
nvim-treehopper | nvim-treesitter-textsubjects | |
---|---|---|
6 | 18 | |
400 | 461 | |
- | - | |
0.0 | 4.3 | |
4 months ago | about 1 month ago | |
Lua | Scheme | |
GNU General Public License v3.0 only | Apache License 2.0 |
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-treehopper
-
Differences in setting keymaps in lua vs map command
I am trying to set up nvim-treehopper and duplicating the suggested keymaps in a lua config.
-
Neovim quick way to indent multiple lines
Take a look at nvim-treehopper (https://github.com/mfussenegger/nvim-treehopper), a tree-sitter based plugin that lets you select regions of code
-
Leaps and (no) bounds - extend leap.nvim with custom motions, callbacks, Tree-sitter, and more
This copies the idea of nvim-treehopper. Just a work in progress hack (pretty usable though), but planning to make a full-fledged plugin, if someone else won't do it :) (Needless to say, my gists can be considered unlicensed, do whatever you want with them.)
-
The most amazing built-in feature nobody ever mentions: smart select!
I also suggest taking a look at this one : mfussenegger/nvim-treehopper
- 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"
-
Plugin: treesitter-unit
https://github.com/mfussenegger/nvim-ts-hint-textobject does what you are proposing.
nvim-treesitter-textsubjects
-
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?
spellsitter.nvim - Treesitter powered spellchecker
nvim-ts-hint-textobjects
nvim-treesitter-context - Show code context
nvim-treesitter-textobjects
NvChad - An attempt to make neovim cli as functional as an IDE while being very beautiful , blazing fast. [Moved to: https://github.com/NvChad/NvChad]
hop.nvim - Neovim motions on speed!
zephyr-nvim - A dark neovim colorscheme written in lua
orgmode - Orgmode clone written in Lua for Neovim 0.9+.
nvim-gps - Simple statusline component that shows what scope you are working inside
treesitter-unit - A Neovim plugin to deal with treesitter units
twilight.nvim - 🌅 Twilight is a Lua plugin for Neovim 0.5 that dims inactive portions of the code you're editing using TreeSitter.
ts-textobjects - Treesitter textobjects for neovim.