rainbow
splitjoin.vim
Our great sponsors
rainbow | splitjoin.vim | |
---|---|---|
9 | 18 | |
1,740 | 1,875 | |
- | - | |
0.0 | 7.4 | |
7 months ago | about 1 month ago | |
Vim Script | Vim Script | |
Apache License 2.0 | 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.
rainbow
-
Custom parentheses highlighting
Rainbow will do your first requirement: https://github.com/luochen1990/rainbow
-
Rainbow doesn't work with treesitter and I'm not sure why
Okay it's actually a bit (alot) different and easier and I described it here: https://github.com/luochen1990/rainbow/issues/163
-
Improved C syntax highlighting for Vim
The parentheses color are not caused by this script, but by my usage of rainbow parentheses (some variant of https://github.com/luochen1990/rainbow) which I have configured for my usual light background vim theme.
I did not spend time to set up a more empty vim configuration to take the screenshots.
The script does not introduce any new colors, it just changes what is highlighted as cType.
It does change the color of parentheses for "if" statements to be the same color as the keyword. I am undecided if I should keep that or not. Opinions from people not using rainbow or similar plugins are welcome.
- Plugins alternative in Lua
-
[Looking for a plugin] Color coding matching braces, parentheses
For comparison here are operands configured. Is this included?
-
Simple and Nice color scheme ๐
Yup, I use this plugin vim-python/python-syntax and rainbow parentheses ๐
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
What are some alternatives?
nvim-ts-rainbow - Rainbow parentheses for neovim using tree-sitter. Use https://sr.ht/~p00f/nvim-ts-rainbow instead
aniseed - Neovim configuration and plugins in Fennel (Lisp compiled to Lua)
vim-indent-guides - A Vim plugin for visually displaying indent levels in code
nvim-revJ.lua - Nvim-plugin for doing the opposite of join-line (J) of arguments written in lua.
rainbow_parentheses.vim - :rainbow: Simpler Rainbow Parentheses
vim-startify - :link: The fancy start screen for Vim.
vim-rooter - Changes Vim working directory to project root.
sideways.vim - A Vim plugin to move function arguments (and other delimited-by-something items) left and right.
nvim-treesitter - Nvim Treesitter configurations and abstraction layer
nerdcommenter - Vim plugin for intensely nerdy commenting powers [Moved to: https://github.com/preservim/nerdcommenter]
vista.vim - :cactus: Viewer & Finder for LSP symbols and tags
switch.vim - A simple Vim plugin to switch segments of text with predefined replacements