nvim-treesitter-textobjects
vim-surround
Our great sponsors
nvim-treesitter-textobjects | vim-surround | |
---|---|---|
87 | 83 | |
1,827 | 12,951 | |
6.5% | - | |
8.3 | 0.0 | |
14 days ago | 10 months 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-surround
-
Difftastic, a structural diff tool that understands syntax
I don't know what exactly you mean by pasting around the second selection, but you can paste selections, registers or even files at specific lines with some vim-fu. If it's generic enough you could write a function or even keyboard shortcut if it's very simple.
I have set ",',(,[,{ in visual mode to cut the selection insert the pairs then paste it back as a very hacky solution, but it gets the job done. If you want something more advanced to add or change anything around the selection tpope has solved that with vim-surround[1].
-
Wrapping a range of lines in an html tag?
vim-surround is likely the plugin answer.
-
How do you manually install plugins
If you don't want to leverage Vim's package feature or you want to put your plugins in some other place, add the folder of the plugin to your :h 'runtimepath'. For example, if you download Tim Pope's vim-surround at ~\Documents\vim-surround, you should add this to your Vim configuration:
-
ShadowVim embeds Neovim inside Xcode
Vim plugins (without UI) work out of the box. Hello vim-surround, argtextobj.vim and whatnot.
-
Vim function to move following word into parentheses?
If you don't insist on staying in insert mode then you can use vim-surround, which is perfect for this: yse
-
Automatically encapsulate or surround existing code with symbol pair
I may be mistaken, but it seems to me that this neat feature comes from this plugin : https://github.com/tpope/vim-surround
- How to surround a paragraph with multiple charaters/symbols?
-
Ask HN: Text Editor with “add prefix/suffix around selected text” feature?
Vim can do this with the following plugin: https://github.com/tpope/vim-surround
I exclusively use the visual mode commands though, because I find the normal-mode commands confusing.
-
markdowny.nvim
e.g. in vim-surround you could just do something like ysiw_ to make a word italics or ysiw*w. (assuming you also have vim-repeat).
-
Neovim config from scratch (Part II)
vim-surround act on surrounding characters (think quotes, braces, parentheses...)
What are some alternatives?
nvim-autopairs - autopairs for neovim written in lua
vim-multiple-cursors - True Sublime Text style multiple selections for Vim
vim-sandwich - Set of operators and textobjects to search/select/edit sandwiched texts.
nvim-treesitter-refactor - Refactor module for nvim-treesitter
Neovim-from-scratch - 📚 A Neovim config designed from scratch to be understandable
targets.vim - Vim plugin that provides additional text objects
nvim-treesitter - Nvim Treesitter configurations and abstraction layer
vim-textobj-user - Vim plugin: Create your own text objects
tabout.nvim - tabout plugin for neovim
delimitMate - Vim plugin, provides insert mode auto-completion for quotes, parens, brackets, etc.
vscode-neovim - Vim mode for VSCode, powered by Neovim
micro-editor - A modern and intuitive terminal-based text editor