melange.nvim is a semantically helpful colorscheme that associates warm colors with control flow and cold colors with data. Melange-Dark is a fork of melange.nvim that features better visual effects and extensible plugin supports.
- Modern neovim colorscheme, with support for default highlight groups, tree-sitter highlight groups and LSP semantic highlight groups.
- Support for various plugins, including (in lexicographical order):
- blink.cmp and nvim-cmp
- gitsigns.nvim
- indent-blankline.nvim
- lightline.vim and lualine.nvim
- mini.nvim
- neo-tree.nvim
- rainbow-delimiters.nvim
- render-markdown.nvim
- VimTeX
- And more plugins by their default highlight linking!
- Support for various terminal emulators/multiplexers (see
term/): - Ports to other editors or environments:
- Nixvim melange @Gaetan Lepage
- VS Code Melange Redux @rtud
- Neovim ≥ 0.9.2
- A terminal emulator with true color and font variants support (italics, bold, etc).
You can install this plugin with any (Neo)Vim plugin manager.
Paq:
"One-In-Dark/melange-dark";Lazy, with the recommended config:
{ -- PluginSpec
'One-In-Dark/melange-dark',
lazy = false,
priority = 1000,
config = function()
vim.cmd 'colorscheme melange'
end,
}If highlights for some specific file types are not seen, check your tree-sitter parsers. Note nvim-treesitter can be used to install parsers.
Load the colorscheme in your init.lua:
vim.cmd 'colorscheme melange'or in your init.vim:
colorscheme melangeSince v0.10, neovim will enable termguicolors automatically if your terminal supports it. It will also set the background according to your terminal background. It's not necessary to set these options manually.
Configs can be set via g:melange (Vimscript) or require('melange').setup {opts} (Lua). The defaults are (in Lua code):
vim.g.melange = {
enable_font_variants = {
bold = true,
italic = true,
underline = true,
undercurl = true,
strikethrough = true,
},
rainbow = {
-- Treat delimiters as control flow, thus using warm colors only.
warm_color_only = false,
},
}melange.nvim has been inspired by many colorschemes, in particular Ayu and Gruvbox.
Because there're insurmountable issues with current palettes. For example, Visual too dim to be seen (#109) and support for render-markdown.nvim (#127).
This fork adds some colors into the palette (without deprecating the original ones), so expect seamless transition from upstream. (Where possible, the commits here can be contributed upstream as well.)
I also try to better follow the conventions of other famous colorschemes.
Because I use dark variant only. I cannot be responsible for light variant.
