rainbow-delimiters
nvim-ts-rainbow
Our great sponsors
rainbow-delimiters | nvim-ts-rainbow | |
---|---|---|
6 | 21 | |
656 | 865 | |
- | - | |
2.3 | 8.3 | |
8 months ago | over 1 year ago | |
Emacs Lisp | Lua | |
GNU General Public License v3.0 only | 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.
rainbow-delimiters
-
Y'all deserve a medal or something
I'm a big fan of rainbow-delimiters, available on Melpa.
-
Template Engine Minor Modes?
rainbow-delimiters ( https://github.com/Fanael/rainbow-delimiters/ ) does this for parenthesis/braces etc but is somewhat bound to the syntax tree of whatever major mode is currently in use, it also scans on a per-character basis, where I'd need to scan for regex.
-
Tree Sitter and the Complications of Parsing Languages
> Lighting up the active scopes
As you had guessed a little later, there are a few different emacs packages that do this. One of them is "rainbow parentheses" that gives every bracket a different colour (remember that emacs supports lisp, so differentiating between lots of different parentheses is arguably more useful in emacs than any other editor). [0].
Another one is highlight parentheses [1] which highlights all parens that enclose the cursor position, and gives a darker colour to those "further away" from the cursor.
[0] https://github.com/Fanael/rainbow-delimiters
[1] https://sr.ht/~tsdh/highlight-parentheses.el/
-
How We Made Bracket Pair Colorization 10,000x Faster
This article is especially interesting to me, as it shows how VS Code still doesn't have the "Emacs nature". Even though I'm a 30-year Emacs user, I do hesitate to recommend it to younger programmers because it's so alien, and VS Code has one of the essential characteristics of Emacs: the extension language and the implementation language are the same. But this article is a great example of how it doesn't — extensions are limited to using an extension API, rather than having full access to the application's internals. Maybe a good thing, if you're a mass-market product worried about malicious extensions. But I'll note that [rainbow-delimiters-mode](https://github.com/Fanael/rainbow-delimiters/) dates back to 2010, and has never noticeably slowed down loading or display of source files, even in languages with lots of delimiters like Lisp.
-
Practical questions from a lisp beginner
Using highlight-parentheses-mode, which is an additional package, helps. There are also show-paren-mode (build in) and rainbow-delimiters (additional package), whose could help there.
- Humanoid themes updated with many new faces, fixes and color adjustments; constructive feedback welcome!
nvim-ts-rainbow
-
TS: Level of a node based on capture group?
for the past few days I have been working on a fork to the nvim-ts-rainbow plugin: nvim-ts-rainbow2. I am pretty much done, except for one small issue: finding out the level of a node relative to other container nodes. I know how to determine the level of a node in the tree (just keep counting up from 1 while going through the parents until I hit the root), but that is not what I need.
-
nvim-ts-rainbow is archived and no longer maintained
I noticed that it was abandoned when I was about to update my PR. The PR as it is up there is a mess, so I went through a major refactor and subsequently lost everything like an idiot.
-
How to configure nvim UI to look like this?
The "look" you're looking for is given by a bunch of plugins: - OneDark.nvim as colorscheme - TS Rainbow for rainbow brackets - BarBar for bufferline - Nvim Devicons and NerdFonts to view file icons - NvimTree as a file manager - Indent Blankline to show indentation guides - CompetiTest with vertical split UI - Feline as statusline plugin. In the screenshot feline is configured with a custom theme. As you can see statusline is different for CompetiTest buffers: a different statusline can be configured for every different filetype using conditional_config.
-
Lua alternative to vim-matchup
For highlightning parentheses you could check out nvim-ts-rainbow
- Supercharge your Haskell experience in neovim
- Rainbow indent guides like vscode
-
Is there any very colorful Onedark colorscheme for Neovim? Onedark.nvim and Onedarkpro.nvim are nice, but I still feel they are a little bit colorful compared to the syntax-highlight of this Onedark I used in VSCode.
Consider using nvim-ts-rainbow to get rainbow parentheses.
-
Code highlighting sucks on Neovim.
To get changed colors for nested brackets, use nvim-ts-rainbow. I think the rest of the comments have you covered on getting colors up to snuff for you. To me it just looks like mismatched colors, not that anything is wrong
-
nvim-ts-rainbow improved highlighting of JSX
I'm happy to say I have fixed [the bug in nvim-ts-rainbow] that caused all JSX props to be highlighted](https://github.com/p00f/nvim-ts-rainbow/issues/118) in extended_mode instead of just highlighting the tag names. It was bugging me for a while when working on React components. Now, only the tag names and angle brackets in JSX elements are highlighted.
-
Lisp programming configuration for neovim
Lsp support is pretty good with Neovim, but obviously depends on what Lisp you use. I also like ts-rainbow a lot, but that's literally just visual fluff for brackets
What are some alternatives?
Bracket-Pair-Colorizer-2 - Bracket Colorizer Extension for VSCode
vscode-extension-samples - Sample code illustrating the VS Code extension API.
indent-blankline.nvim - Indent guides for Neovim
rainbow-blocks - block syntax highlighting in emacs
rainbow - Rainbow Parentheses Improved, shorter code, no level limit, smooth and fast, powerful configuration.
emacs-noob - A curated emacs set up intended to decrease the learning curve
rainbow_parentheses.vim - :rainbow: Simpler Rainbow Parentheses
emacs-humanoid-themes - Light and dark theme with bright colors for Emacs that supports GUI and terminal
iceberg.vim - :antarctica: Bluish color scheme for Vim and Neovim
atom-focus-mode - Atom editor extension - fades editor content and highlights only the lines you are working on
nvim-treesitter-refactor - Refactor module for nvim-treesitter