nvim-treesitter-textobjects
vim-treesitter | nvim-treesitter-textobjects | |
---|---|---|
2 | 87 | |
72 | 1,922 | |
- | 4.9% | |
0.0 | 8.5 | |
almost 2 years ago | 4 days ago | |
Go | Scheme | |
- | 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.
vim-treesitter
-
Vim Boss – Neovim
You are stating these things as though they were established facts. But they seem to be opinions. Or do you have data to back them up?
> People who are new to vim-style-editors and go to neovim are mainly people who would have gone to vim if neovim didn't exist.
It seems reasonable to assume that a lot of new people would not pick up either Vim or Neovim without LSP integration and Tree-sitter.
Vim has adopted a lot of the early features of Neovim and now Vim9 also has virtual text for rendering LSP diagnostics in the buffer[1] and there is a Vim9 LSP plugin too. But it does not at all seem likely that Vim would have these things were it not for the push from Neovim.
Besides, it looks like Vim still does not have mature support for Tree-sitter.[2]
> Well, the prevalent wisdom of 30+ years of FOSS has been that they're mostly bad.
There are many famous forks from the past 30 years that hardly anybody calls bad. Some examples: Net/Free/OpenBSD, GNU/XEmacs, Open/LibreSSL. These projects allowed people with different goals or values to carry on in their own directions, while also motivating each other to pick up development pace. They have often also shared code with each other.
[1] Which looks like this: https://sr.ht/%7Ewhynothugo/lsp_lines.nvim/
[2] One experimental plugin I came across: https://github.com/mattn/vim-treesitter
-
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"
mattn might be cooking something: https://github.com/mattn/vim-treesitter
nvim-treesitter-textobjects
-
Use treesitter to jump to next argument without going into nested function calls?
I was hoping to use nvim-treesitter-textobjects to jump to the next argument via something like this:
-
Code navigation ctags/cscope/gnu global alternative?
You want to look at nvim-treesitter-textobjects. It let's you define keymaps for navigating text objects defined by treesitter and you can also use them with commands like d, c and so on.
-
My Favorite Vim Oneliners for Text Manipulation
Thank you! It looks like nvim-treesitter-textobjects is a good plugin to start with:
https://github.com/nvim-treesitter/nvim-treesitter-textobjec...
-
How to move between the topmost/root node in treesitter?
I'm aware of nvim-treesitter-textobjects and I suspect my answer lies in this plugin, but is there a way to move between root nodes that is agnostic of the node type?
-
Manipulating and moving between function arguments in Neovim
Thanks! I just started using https://github.com/nvim-treesitter/nvim-treesitter-textobjects, and it works as a charm.
-
Searching for plugin to provide granular treesitter visual mode navigation
nvim-treesitter-textobjects
-
Vim Tip - Jump to start of function or code block
In this case, reading here is probably a good start: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
-
Getting v(a|i)B working in Ruby?
Have a look at https://github.com/nvim-treesitter/nvim-treesitter-textobjects. Set up the @block.inner and @block.outer textobjects and it should work.
-
How do you jump to the beginning of a function
nvim-treesitter-textobjects lets you jump to (for instance) functions more accurately than with a regex-based approach using ]f
Or even better, one can use nvim-treesitter-textobjects. It already provides function/class selection and go-to functionality out-of-the-box.
What are some alternatives?
nvim-treehopper - Region selection with hints on the AST nodes of a document powered by treesitter
vim-multiple-cursors - True Sublime Text style multiple selections for Vim
iswap.nvim - Interactively select and swap function arguments, list elements, and much more. Powered by tree-sitter.
nvim-treesitter-refactor - Refactor module for nvim-treesitter
hop.nvim - Neovim motions on speed!
targets.vim - Vim plugin that provides additional text objects
nvim-gps - Simple statusline component that shows what scope you are working inside
nvim-treesitter - Nvim Treesitter configurations and abstraction layer
Vim - The official Vim repository
vim-textobj-user - Vim plugin: Create your own text objects
vim-treesitter - vim async coloring experiment
vscode-neovim - Vim mode for VSCode, powered by Neovim