vim-textobj-user
nvim-treesitter-textobjects
Our great sponsors
vim-textobj-user | nvim-treesitter-textobjects | |
---|---|---|
25 | 87 | |
1,424 | 1,890 | |
- | 6.6% | |
0.0 | 8.3 | |
about 4 years ago | 8 days ago | |
Vim Script | 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-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.
-
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)
-
Vim text object for path
I would suggest using vim-textobj-user. Someone has already implemented a path object using this plugin. You can find this implementation here.
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?
wildfire.vim - Smart selection of the closest text object
vim-multiple-cursors - True Sublime Text style multiple selections for Vim
vim-indent-object - Vim plugin that defines a new text object representing lines of code at the same indent level. Useful for python/vim scripts, etc.
nvim-treesitter-refactor - Refactor module for nvim-treesitter
coc.nvim - Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
targets.vim - Vim plugin that provides additional text objects
vim-matchup - vim match-up: even better % :facepunch: navigate and highlight matching words :facepunch: modern matchit and matchparen. Supports both vim and neovim + tree-sitter.
nvim-treesitter - Nvim Treesitter configurations and abstraction layer
vim-textobj-indent - Vim plugin: Text objects for indented blocks of lines
vscode-neovim - Vim mode for VSCode, powered by Neovim
vim-textobj-entire - Vim plugin: Text objects for entire buffer
nvim-treesitter-context - Show code context