Giter VIP home page Giter VIP logo

melange-nvim's Introduction

melange-logo

Features

Requirements

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

Installation

You can install Melange with any (Neo)Vim plugin manager.

Paq:

"savq/melange-nvim";

Lazy:

{ "savq/melange-nvim" }

Additionally, nvim-treesitter can be used to install tree-sitter parsers.

Usage

Enable termguicolors and load the colorscheme.

In your init.lua:

vim.opt.termguicolors = true
vim.cmd.colorscheme 'melange'

Or in your init.vim:

set termguicolors
colorscheme melange

To enable the light variant, set the background (or let your terminal do it for you) before setting the colorscheme.

Design

Melange was designed with one idea in mind: Control flow should use warm colors and data should use cold colors; It was originally developed using Lush.nvim; and it's been inspired by many colorschemes, in particular Ayu and Gruvbox.

Previews

melange dark screenshot

melange light screenshot

melange-nvim's People

Contributors

0x7a7a avatar achandran avatar arwenestalia avatar cbilz avatar gabrielmfern avatar gko avatar haringsrob avatar harrygallagher4 avatar savq avatar shibotto avatar spenserblack avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

melange-nvim's Issues

Unable to build using build scripts

Help needed. I am struggling to get the build scripts to work.

$ make

nvim --headless -u NORC \
                --cmd 'lua require("melange.build").build()' \
                --cmd 'q'
Error detected while processing pre-vimrc command line:
E5108: Error executing lua [string ":lua"]:1: module 'melange.build' not found:
        no field package.preload['melange.build']
        no file './melange/build.lua'
        no file '/usr/local/Cellar/luajit-openresty/2.1-20210510/share/luajit-2.1.0-beta3/melange/build.lua'
        no file '/usr/local/share/lua/5.1/melange/build.lua'
        no file '/usr/local/share/lua/5.1/melange/build/init.lua'
        no file '/usr/local/Cellar/luajit-openresty/2.1-20210510/share/lua/5.1/melange/build.lua'
        no file '/usr/local/Cellar/luajit-openresty/2.1-20210510/share/lua/5.1/melange/build/init.lua'
        no file './melange/build.so'
        no file '/usr/local/lib/lua/5.1/melange/build.so'
        no file '/usr/local/Cellar/luajit-openresty/2.1-20210510/lib/lua/5.1/melange/build.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
        no file './melange.so'
        no file '/usr/local/lib/lua/5.1/melange.so'
        no file '/usr/local/Cellar/luajit-openresty/2.1-20210510/lib/lua/5.1/melange.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'

Adding more information around required deps for build script would be awesome.

Colorscheme doesn't look right ...

Why doesn't my colorscheme look anything like the screenshots?

image

It's melange -- but the comments are big maroon blocks and the strings are big purple blocks. I don't see any comments in your screenshots, but surely they don't do that ... at least the strings in your screenshots don't. I don't want my colorscheme to highlight anything in so visually startling a manner (except possibly errors, but probably not even that).

I suspect I might be seeing the same problem with other colorschemes too, not just melange. So I'm thinking the problem is on my side, but I have idea where to look. Any idea what setting I might be screwing up here?

Contrast between hl-DiffChange and hl-DiffText on the light theme is too low... right?

Hello! thanks for the colorscheme, been using it for a while now :D

However, as the title said, i have a little problem regarding the colors of the diff on the light theme, to be more specific with the changed part (did a little research, i think its related with the DiffChange and DiffText highlights, but I'm unsure about it).

Here is how it looks like when i did :Gvdiffsplit (with fugitive.vim)...

2023-03-25_15-47

... compared with vscode.nvim.

2023-03-25_15-48

Change the BG color

Hello, this may be the wrong place to ask this but I am trying to change the background color to that of my terminal (iterm2).
I am changing the

a = {
bg = hsluv(246, 248, 250);
overbd = hsluv(246, 248, 250);
...
}

and although it gets to be a closer to what I want it still has this rose hue to it. Any suggestions?

Thanks for the great theme!

Steve

Add highlight for WinSeparator

Nvim is deprecating VertSplit and moving to WinSeparator in 0.10. By default, WinSeparator links to normal which does not look great for most colorschemes.

Lower contrast?

I like the design of melange, but the contrast is too high and hurts my eyes. Is there a programmatic way to reduce contrast, or should I fork and manually edit all the color values?

Feature request: add feature flag to enable/disable bold & italics

First of all, I very much love this colorscheme. Unfortunately the italicization of comments does not look very good with my font:
image
This colorscheme includes flags to enable/disable bold & italics, which is nice; you put lines your init.vim as follows:

let g:oceanic_next_terminal_bold = 1
let g:oceanic_next_terminal_italic = 1

would it be possible to add something like that for this colorscheme? Thanks!

Highlight words in visual mode

I find the theme color scheme very comfortable and quite appealing. Thank you for your work.!
The issue now is that it's difficult to distinguish the selected content in visual mode. Would it be possible to make some improvements, such as gruvbox-material
It has a configuration item to choose the highlighting color: vim.g.gruvbox_material_visual

Add support for barbar.nvim

barbar has a cool buffer picking feature, however the colorscheme isn't respected by the letter to pick the buffer (see screenshot). instead, the letter is #ff0000 instead of a color from the melange colorscheme.
can this feature be implemented?
image

Disable TSError underline in terminal

The issue

Whenever treesitter fails to parse some program, the errors are highlighted using underlines. This is especially annoying when the code is valid, but treesitter does not recognize it. Here is an example where treesitter highlights ~80 lines of valid C code and the theme adds an underline to all of that:
image

This is annoying because it becomes difficult to differentiate between i and j, for example, when it's underlined. It generally makes it much harder to edit by underlining multiple lines.

Possible solution

I temporarily solved this by removing gui=undercurl from the TSError highlight group in the compiled melange.vim file.

highlight TSError guifg=NONE guibg=NONE guisp=NONE gui=undercurl blend=NONE

to

highlight TSError guifg=NONE guibg=NONE guisp=NONE blend=NONE

In the lush code, I think the change would be removing this:

https://github.com/savq/melange/blob/aebc5256c8804ebad66676ab9ab591bed53170d9/lua/melange/init.lua#L261

Thoughts?

Is this an appropriate solution for this problem?


Thank you for making this theme, I've been using this for some time now and really liked it ❤️

[feature request] add transparency?

just found out about melange thanks to this blog post, and I totally stand by this:

the only colorscheme I’ve found that I didn’t eject in horror after 5 minutes, except for gruvbox

Would you consider adding transparency?

E423: Illegal argument: blend=NONE

I am picking through a few colourschemes and found this one. I realize that it’s WIP, but your description suggests you’re trying to make this work on both Vim and Neovim.

Unfortunately highlight does not support blend= on Vim as of version 8.2

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Mar  8 2021 07:21:32)
macOS version - x86_64
Included patches: 1-2576  

Font

Hello,

Could you provide the font used in the screenshot?

Furthermore, any special melange configurations you made to achieve the exact same aesthetics.

Diff colors

First of all, thanks for this colorscheme. I think it is one of the best dark themes out there, if not the best. It's all balanced. My coworkers always ask the name of it in a pair session. Please, make the palette more accessible for ports to other text editors. You did a great job here.

IMHO, this colorscheme fails just in one category: the diff colors. It's hard to tell what has changed at a glance.
I don't understand anything about colors, so I don't know what to suggest to help with this. Maybe, some background colors?

Darker and warmer variants

Hello.

This colorscheme is great but darker and warmer variants would add value for different people and configurations. https://github.com/sainnhe/gruvbox-material and https://github.com/ramojus/mellifluous.nvim are good examples of how implementing different variants in the same colorscheme.

I have created a darker and warmer variant in https://github.com/Martin1887/melangeDarkerWarm-nvim (without implementing different schemes), though it slightly breaks the philosophy of cold colors for data of melange (maybe cooler colors for data).

Thanks.

Font

Sorry for annoying. What is the name of font on preview?

Add support for nvim-tree.lua

i noticed that the melange colors are weird in nvim tree when it is loaded in init.lua using

vim.cmd('colorscheme melange')

loaded in init.lua
image

loaded after init using :colorscheme melange
image

can this be solved?

Support semantic highlighting added in neovim 0.9

Since neovim 0.9 color schemes can utilize semantic highlighting from LSP.
I'd love to use this theme with that.

Comparison (take a close look at input, part parameters colors and sequence_len local variable color):

savq/melange-nvim
Screenshot 2023-04-10 at 13 44 40

folke/tokyonight.nvim
Screenshot 2023-04-10 at 13 44 48

Generate iterm2 files automatically

iterm2 stores colors using apple's plist format (xml pretending to be json). Melange should either have a template to generate the plist automatically (as is done with other terminal emulators) or suggest a tool that targets that format.

Kitty terminal support improvement

Hello
Would it be possible to add "cursor_text_color" in a contrasting color to the Kitty terminal themes? With this parameter missing the block cursor in nvim becomes just a dark block that hides the character behind it.

I tried adding "cursor_text_color #F1F1F1" to the light Kitty theme and that fixed the problem for the light theme.

No Cursor in Noice Commandline

In the Noice the cursor in the commandline is invisible, since the Cursor highlight in melanage is not set and NoiceCursor links to it.
This can be fixed by either setting the Cursor or NoiceCursor to something, but is there is reason Cursor has been left unset?

Current output:
image

With NoiseCursor = {bg = a.fg, fg = a.bg}:
image

highlight Visual guibg

Thank you for the amazing colorscheme. I feel like the Visual selection is hard to see with the defined color. I have tried to add a guifg=white to make my eyes help to see where the visual selection ends.
It is hard for my eyes to really see where the visual selection starts and ends with the current color.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.