splitjoin.vim
ts-node-action
splitjoin.vim | ts-node-action | |
---|---|---|
18 | 9 | |
1,878 | 347 | |
- | - | |
7.4 | 5.9 | |
about 2 months ago | 2 days ago | |
Vim Script | Lua | |
MIT License | - |
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.
splitjoin.vim
-
How to implement a custom code modification (LSP vs TreeSitter)
My splitjoin plugin handles your examples, in case you're open to non-LSP, non-treesitter solutions: https://github.com/andrewradev/splitjoin.vim
-
feline.nvim announcements and updates
To avoid the practical issues with master/main, a simple solution is to mirror branches in a github action. I had to fork the action itself to fix an issue, but yeah, it works fine.
-
New Plugin: splitjoin.nvim 🪓🧷
Yes, sorry, should have done that the first time I encountered the bug. I rediscovered the bug and I opened a new issue.
-
line split Vim in Vscode
I quite like https://github.com/AndrewRadev/splitjoin.vim . There are defaults for some filetypes and you can add "recipes" for whatever you want.
-
Neovim config from scratch (Part II)
splitjoin to alternate between abbreviated and expansive syntaxes for hashes, arrays, method calls...
-
New Plugin Preview! Treesitter Node Action
To clarify a bit, "a regex approach" doesn't mean s// :). For example, I've got a few mini-parsers for specific cases like rust structs or ruby methods and hashes that handle nesting and more complex structures. Vim's built-in search functions also allow checking the syntax tree, which is how vim-ruby implements a few basic text objects, too. I feel like there's a common misconception that all of Vim is just dumb regex-matching, while regexes are just one of the tools available.
- React one-line props into multiple lines?
-
Here's a question
https://github.com/AndrewRadev/splitjoin.vim I noticed I often format calling a function with a lot of parameters from
-
Running Recursive Macros only on Selection?
For the described use case https://github.com/AndrewRadev/splitjoin.vim
-
Quickly expand code inside {}
I personally use this plugin: https://github.com/AndrewRadev/splitjoin.vim I usually forget I have it installed, but when I remember, it always does what in want in all the languages I use
ts-node-action
-
Set it and forget it plugins?
Wansmer/treesj and/or CKolkey/ts-node-action - very useful for lua tables and stuff
-
Plugin/method to spread one line onto multiple lines
There are at least these: - mini.splitjoin which works based on Lua patterns without tree-sitter (occasional false positive in parsing arguments, but doesn't require tree-sitter). - Wansmer/treesj which works based on tree-sitter parsing. - CKolkey/ts-node-action - more general tree-sitter actions (also requires tree-sitter parser installed and loaded).
-
mini.splitjoin - split and join arguments
I'm very happy with CKolkey/ts-node-action: Neovim Plugin for running functions on nodes. (github.com) . Just one mapping (`ga`) that can do many actions, including split/join.
-
New Plugin: splitjoin.nvim 🪓🧷
I thought about a queries based approach for ts-node-action, but ultimately just settled on something a bit simpler. That said, this is super cool stuff :D
- Toggle markdown checkbox
-
TsNodeAction: Inline Folding for text!
I saw some people talking about having inline-folding in neovim, and figured `conceal` could be used to do this. You can check out the implementation here, and use it by installing the plugin (`ckolkey/ts-node-action`).
-
Is there anything like`inline-fold`for Neovim and Tailwind?
I added it to https://github.com/CKolkey/ts-node-action for html files
-
New Plugin Preview! Treesitter Node Action
You can check it out here: https://github.com/CKolkey/ts-node-action
What are some alternatives?
aniseed - Neovim configuration and plugins in Fennel (Lisp compiled to Lua)
mini.nvim - Library of 35+ independent Lua modules improving overall Neovim (version 0.7 and higher) experience with minimal effort
nvim-revJ.lua - Nvim-plugin for doing the opposite of join-line (J) of arguments written in lua.
nvim-trevJ.lua - Nvim-plugin for doing the opposite of join-line (J) of arguments, powered by treesitter
vim-startify - :link: The fancy start screen for Vim.
tint.nvim - Dim inactive windows in Neovim using window-local highlight namespaces.
sideways.vim - A Vim plugin to move function arguments (and other delimited-by-something items) left and right.
better-escape.nvim - Escape from insert mode without delay when typing
nerdcommenter - Vim plugin for intensely nerdy commenting powers [Moved to: https://github.com/preservim/nerdcommenter]
ssr.nvim - Treesitter based structural search and replace plugin for Neovim.
switch.vim - A simple Vim plugin to switch segments of text with predefined replacements
numb.nvim - Peek lines just when you intend