Skip to content

kuznetsss/meadow.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌼 meadow.nvim

A dark neovim colorscheme based on HSV colors. Why another coolorscheme? I wanted to have a colorscheme with a lot of green and yellow color. This colorschemes is inspired by QtCreator's default colorscheme.

🖥️ Screenshots

Lua code

📦 Installation

Same as any other plugin, e.g. using lazy:

{
  'kuznetsss/meadow.nvim',
  priority = 1000,
  config = true
},

To switch to the colorscheme:

colorscheme meadow

or

vim.cmd.colorscheme 'meadow'

🔧 Setup

Here is an example of configuration with default values:

require'meadow'.setup {
  color_saturation = 80, -- contrast (0-100)
  color_value = 80, -- brightness (0-100)
}

which will change the initial brightness and contrast of the colorscheme. Setting color_saturation to 0 will result in grayscale colorscheme. And setting color_value to 0 will result in black screen.

🛠️ Adjusting brightness and contrast

cropped.mov

It is possible to adjust brightness and contrast using lua:

require'meadow'.change_brightness(10) -- increase brightness by 10
require'meadow'.change_contrast(10) -- increase brightness by 10

or vim commands:

MeadowChanngeBrightness +10 " increase brightness by 10
MeadowChanngeBrightness -10 " decrease brightness by 10
MeadowChanngeContrast +10 " increase contrast by 10
MeadowChanngeContrast -10 " decrease contrast by 10

💡 Using colors in your lua code

require'meadow'.colors.rgb contains a table with all colors in hex rgb format. Eache color has two fields: fg and bg. For example:

require'meadow'.colors.rgb.red1.fg -- '#cc2929' with the default brightness and contrast

👍 Thanks

🎨 Similar colorschemes

  • I think one-dark.nvim is quite similar but with more blue and less green.