el-patch
nvim-ts-rainbow
el-patch | nvim-ts-rainbow | |
---|---|---|
6 | 21 | |
249 | 865 | |
0.8% | - | |
3.4 | 8.3 | |
6 months ago | over 1 year ago | |
Emacs Lisp | 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.
el-patch
-
How to make this function run automatically?
I also tweak that function for similar reasons. I personally use el-patch for that: https://github.com/radian-software/el-patch. This way, at least we can ensure our redefinition does not get out of step with the original. Anyway, I also find it hard to do otherwise, because we need the match data at the correct point, so just advising the function becomes tricky.
- el-patch: Customize the behavior of ELisp functions (that do not provide enough variables and hooks) and make them do what you want
-
Editing source of package for customization in Emacs
Check out el-patch--if I understand what you're trying to do, it's designed for exactly this use case!
-
How We Made Bracket Pair Colorization 10,000x Faster
Yeah and even in personal config one could use el-patch[1], to make monkeypatching future proof.
[1] https://github.com/raxod502/el-patch
-
Lars Ingebrigtsen: 10×10% – Random Thoughts (closing 45% of open Emacs bugs)
Speaking for myself, I have a lot of (use-package some-package :config (defun some-package-function-I-want-to-override (...) ...)) in my config file, which works well enough to override package definitions. In case you don't use use-package, then (eval-after-load 'some-package '(defun ...)) also works. I also use a lot of advice. Although I don't use it, https://github.com/raxod502/el-patch provides a more structured approach to patching definitions using a novel sexpy patch format.
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?
prism.el - Disperse Lisp forms (and other languages) into a spectrum of colors by depth
Bracket-Pair-Colorizer-2 - Bracket Colorizer Extension for VSCode
indent-blankline.nvim - Indent guides for Neovim
emacs-dashboard - An extensible emacs dashboard
rainbow - Rainbow Parentheses Improved, shorter code, no level limit, smooth and fast, powerful configuration.
Visual Studio Code - Visual Studio Code
rainbow_parentheses.vim - :rainbow: Simpler Rainbow Parentheses
vscode-extension-samples - Sample code illustrating the VS Code extension API.
iceberg.vim - :antarctica: Bluish color scheme for Vim and Neovim
vscode-python - Python extension for Visual Studio Code
nvim-treesitter-refactor - Refactor module for nvim-treesitter