Skip to content

🗡️ Warm color scheme for Neovim and beyond

License

Notifications You must be signed in to change notification settings

One-In-Dark/melange-dark

 
 

Repository files navigation

Melange-Dark

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.

Screenshot of code listing using melange dark

Features

Requirements

  • Neovim ≥ 0.9.2
  • A terminal emulator with true color and font variants support (italics, bold, etc).

Installation

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.

Usage

Load the colorscheme in your init.lua:

vim.cmd 'colorscheme melange'

or in your init.vim:

colorscheme melange

Since 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,
  },
}

Design

melange-logo

melange.nvim has been inspired by many colorschemes, in particular Ayu and Gruvbox.

FAQ

Why this fork?

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.

Why dark-background only?

Because I use dark variant only. I cannot be responsible for light variant.

About

🗡️ Warm color scheme for Neovim and beyond

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Lua 94.9%
  • Vim Script 4.8%
  • Makefile 0.3%