iswap.nvim
LuaSnip
iswap.nvim | LuaSnip | |
---|---|---|
9 | 77 | |
486 | 2,991 | |
- | - | |
5.6 | 9.2 | |
4 days ago | 8 days ago | |
Lua | Lua | |
MIT License | 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.
iswap.nvim
-
Sibling-swap.nvim: another way to swaps arguments, array's items and attributes
Could you elaborate on how is this different from https://github.com/mizlan/iswap.nvim?
-
Moving from IDE to VIM Cheatsheet
The "move element left/right" thing you might be interested in https://github.com/mizlan/iswap.nvim perhaps?
-
I must be missing something
iswap.nvim: Swap argument with treesitter.
-
Post-operation flashing and arbitrary node swapping!
[iswap.nvim](https://github.com/mizlan/iswap.nvim) is a plugin for swapping things around interactively in your buffer (powered by tree-sitter). Since the start I've entertained the idea of a post-operation highlight flash that confirms the operation, since otherwise it is sometimes hard to tell what you just did (to make sure you did it correctly). Also, you can arbitrarily swap sibling nodes too now, thanks to a PR by u/JoseConseco_ !
-
Swapping objects with `nvim-treesitter-textobjects`
Btw, I found the queries from https://github.com/mizlan/iswap.nvim helpful in implementing this approach. (For example I found (variable_list (_) @swappable) was not covered in your lua queries. Once again thanks, this is great fun!
-
USER FLAIRS: Apply now!
Plugin author: https://github.com/mizlan/iswap.nvim
- 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"
-
Custom treesitter textobjects
- https://github.com/mizlan/iswap.nvim : again uses hints for swapping treesitter nodes
-
iswap.nvim: Interactively swap function arguments, list elements, and more using tree-sitter!
iswap.nvim is a plugin that allows you to interactively swap... things! Like a lot of things: function arguments, list elements, parameters, and more! Take a look and see if it tickles your fancy!
LuaSnip
-
UltiSnips – Snippet Solution for Vim
If you're using Neovim, check out LuaSnip: https://github.com/L3MON4D3/LuaSnip
-
What is your preferred snippet plug-in?
I’ve been using LuaSnip and never put much thought into it. And this was mainly because of because it seemed like the default and had good LSP integration. The one downside is that creating custom snippets is not that ergonomic, but I don’t mind it if it’s the price to pay for speed.
-
HTML and Css snippets
You can use LuaSnip and load snippets from VSCode. The documentation is pretty complete, but here is my config in case you want another reference.
-
Enabling python's snippets.
I am trying to add snippets for python, i have LuaSnip and friendly-snippets installed, but for some reason it does not load the snippets. This is how i load the plugins:
-
[Help] Paste triggers in Select mode
There was a similar issue in LuaSnip repo. The culprit was a keymap in the config. Do you happen to have a similar keymap somewhere in your config?
-
My Haskell snippet collection for Neovim - with tree-sitter and LSP
I have decided to extract my Haskell snippets for LuaSnip into a plugin: haskell-snippets.nvim.
-
How do I use template files via Lua?
Not exactly what you're talking about but you could look into LuaSnip?
-
How to setup 'nvim-cmp' properly?
There are a few more resources for new users as well on the official repo, and you can find the implementation in Examples/snippets.lua
-
Does anyone know how to quickly create class, interface, record, ...etc in java with nvim
You mean snippets? If yes, you can try Luasnip and friendly-snippets with nvim-cmp and here's the setup guide. Hope it helps
-
Why does tab sometimes send me to a random position in my buffer?
I had the same issue recently. It was the case when I inserted a snippet but didn't fill out all the placeholders right away. This helped me. This is an autocommand that unlinks the unfinished snippet when you change the mode.
What are some alternatives?
nvim-ts-rainbow - Rainbow parentheses for neovim using tree-sitter. Use https://sr.ht/~p00f/nvim-ts-rainbow instead
vim-vsnip - Snippet plugin for vim/nvim that supports LSP/VSCode's snippet format.
vim-treesitter
ultisnips - UltiSnips - The ultimate snippet solution for Vim. Send pull requests to SirVer/ultisnips!
vim-swap - Reorder delimited items.
friendly-snippets - Set of preconfigured snippets for different languages.
nvim-treehopper - Region selection with hints on the AST nodes of a document powered by treesitter
nvim-snippy - Snippet plugin for Neovim written in Lua
hop.nvim - Neovim motions on speed!
snippets.nvim
nvim-treesitter-textsubjects - Location and syntax aware text objects which *do what you mean*
nvim-cmp - A completion plugin for neovim coded in Lua.