nvim-treesitter-textobjects
vim-textobj-user
Our great sponsors
nvim-treesitter-textobjects | vim-textobj-user | |
---|---|---|
87 | 25 | |
1,827 | 1,409 | |
6.5% | - | |
8.3 | 0.0 | |
14 days ago | about 4 years ago | |
Scheme | Vim Script | |
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-treesitter-textobjects
-
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...
-
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
-
How do you jump to the beginning of a function
Or even better, one can use nvim-treesitter-textobjects. It already provides function/class selection and go-to functionality out-of-the-box.
- What's the deal with Treesitter?
-
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.
-
Can I separate `v` and `vi/va` like Helix?
These are the problem. I have no issue with vanilla vim inside/around motions with nnoremap mi vi, but I can't use all extra inside/around motion plugins like mini.ai and nvim-treesitter-textobjects.
-
Select text using Treesitter Queries and start typing right away with SelectEase.nvim
Your config, tree-surfer or nvim-treesitter-textobjects follow nodes using the syntax tree. Go to parent / child / next siblings ect....
-
Testing my config?
I recently wrote a few tests here and it works with github actions as well.
-
Function and class text objects with Treesitter?
There is nvim-treesitter/nvim-treesitter-textobjects. It serves double purpose: defines per-language queries for which tree-sitter nodes should be considered a function, class, etc. and defines textobjects.
vim-textobj-user
-
vim-textobj-variable-segment throws an error using lazy.nvim
Using lazy, it throws the error 70% of the time. when it doesn't throw the error it works. but It uses a dependency (vim-textobj-user) and I already tested it (only using that plugin without other plugins) is not the dependency's fault.
-
What are all the accepted "inner" motion arguments?
Just to add to that, there are also various plugins that give you additional text objects, such as: - ii for indent levels (https://github.com/kana/vim-textobj-indent) - iz for folds (https://github.com/kana/vim-textobj-fold) - if for functions (https://github.com/kana/vim-textobj-function) - ic for comments (https://github.com/glts/vim-textobj-comment) - User-defined text objects (https://github.com/kana/vim-textobj-user)
-
How to change between slashes using vim-textobj-user?
Thank you, kind vimmer. For others stumbling upon this issue, having same character around is not supported in textobj-user, but there's a workaround: https://github.com/kana/vim-textobj-user/issues/48.
There is a package called https://github.com/kana/vim-textobj-user that let's you add your own patterns to inner and around commands.
-
What kind of short cut key if any do you use for changing text up until next underscore character?
The vim-wordmotion plugin extends the idea of words to include snake case and camel case words among other things. On a related note, the vim-textobj-user plugin lets you extend vim's understanding of text objects.
- Installing argtextobj.vim
-
How to detect nearest nested bracket (of any type)
if anyone wants to use this, just make sure to also install https://github.com/kana/vim-textobj-user for it to work
- Are there plugins for Neovim that don't exist, that should exist, in your opinion?
-
Delete word inside parens without deleting paren or comma
I would highly recommend https://github.com/kana/vim-textobj-user. Specifically, you'd want to pair it with https://github.com/sgur/vim-textobj-parameter. Check the readme for other useful custom text objects, personally I think this is one of my most useful set of plugins
-
Leap.nvim: Neovim’s Answer to the Mouse
I NEVER use count, because my mental flow is drastically hindered by pausing for any form of counting in midst of editing; I stay off even relative numbers even. In their place, I enable a vast number of text objects instead, quite a few implemented through the `kana/textobj-user plugin`. Good text object are an embodiment of intent and thus map better mentally than any method using brute counting, even at the loss of some precision and speed.
[kana/textobj-user](https://github.com/kana/vim-textobj-user)
What are some alternatives?
vim-multiple-cursors - True Sublime Text style multiple selections for Vim
nvim-treesitter-refactor - Refactor module for nvim-treesitter
targets.vim - Vim plugin that provides additional text objects
nvim-treesitter - Nvim Treesitter configurations and abstraction layer
vscode-neovim - Vim mode for VSCode, powered by Neovim
nvim-treesitter-textsubjects - Location and syntax aware text objects which *do what you mean*
nvim-treesitter-context - Show code context
nvim-lsp-installer - Further development has moved to https://github.com/williamboman/mason.nvim!
LunarVim - 🌙 LunarVim is an IDE layer for Neovim. Completely free and community driven.
godot-nim - Nim bindings for Godot Engine
jester - A sinatra-like web framework for Nim.
wildfire.vim - Smart selection of the closest text object