Coder Social home page Coder Social logo

hydrangea-vim's Introduction

Hydrangea theme

This repository includes a color scheme file for Vim.

Screenshot

Features

  • A dark theme with main colors from hydrangea flowers
  • Midnight blue as the background color
  • Support 256 color terminals
  • Includes colorscheme file for lightline.vim
  • Customization via colorscheme generator script written in Python

Installation

For vim-plug users

Plug 'yuttie/hydrangea-vim'

For dein.vim users

call dein#add('yuttie/hydrangea-vim')

Configuration

bufferline.nvim

This colorscheme provides a set of highlight groups for overriding default ones defined by bufferline.nvim. However, it is impossible to provide one-size-fits-all highlight definitions that can be used with any kinds of separators. Therefore, the current one is designed specifically for the following configuration:

require('bufferline').setup {
  options = {
    mode = 'tabs',
    themable = true,
    separator_style = { '|', '|' },
    ...
  },
  ...
}

Please note that you have to set themable to true to apply the colorscheme-defined appearance.

nvim-cmp

nvim-cmp support is provided.

Recommended configuration:

local cmp = require('cmp')

local cmp_window_config = {
  winhighlight = 'Normal:Pmenu,FloatBorder:Pmenu,CursorLine:PmenuSel,Search:None',
  ...
}

cmp.setup({
  ...
  window = {
    completion = cmp.config.window.bordered(cmp_window_config),
    documentation = cmp.config.window.bordered(cmp_window_config),
  },
  ...
})

lightline.vim

lightline.vim support is included. To use the bundled colorscheme for lightline.vim, specify 'hydrangea' in a definition of your lightline as follows:

let g:lightline = {
      \ 'colorscheme': 'hydrangea',
      \ 'component': {
      \   'readonly': '%{&readonly?"":""}',
      \ },
      \ 'separator':    { 'left': '', 'right': '' },
      \ 'subseparator': { 'left': '', 'right': '' },
      \ }

Contribution

Currently, the colors for terminals, i.e. cterm* values, are not tested well. Please create an issue when you find a problem.

See also

If you are also interested in a light theme, have a look at my Inkstained theme! 😎

hydrangea-vim's People

Contributors

yuttie 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  avatar

hydrangea-vim's Issues

Thank You

I wasn't expecting much from an obscure, random colorscheme I found on vimcolors, but this looks really beautiful, seriously.

It sure would be neat to try this in vscode someday.

colors/hydrangea.vim different than python script output

Hi! Love this color scheme. I noticed while setting up fugitive.vim that the diffAdded and diffRemoved foreground and background colors are the same in colors/hydrangea.vim, making the text impossible to read. But when I cloned the repo and ran src/hydrangea.py, I got different output. It seems like colors/hydrangea.vim may be outdated?

Here's the result of running diff against colors/hydrangea.vim and the output I got from src/hydrangea.py

30c30
< hi SpecialKey ctermfg=44 ctermbg=44 cterm=bold guifg=#064253 guibg=#169ec4 gui=bold
---
> hi SpecialKey ctermfg=23 ctermbg=38 cterm=bold guifg=#064253 guibg=#169ec4 gui=bold
32c32
< hi MatchParen ctermfg=197 ctermbg=NONE cterm=bold guifg=#e91e63 guibg=NONE gui=bold
---
> hi MatchParen ctermfg=161 ctermbg=NONE cterm=bold guifg=#e91e63 guibg=NONE gui=bold
35c35
< hi Number ctermfg=23 ctermbg=44 cterm=NONE guifg=#56c7ee guibg=#064253 gui=NONE
---
> hi Number ctermfg=81 ctermbg=23 cterm=NONE guifg=#56c7ee guibg=#064253 gui=NONE
49c49
< hi Error ctermfg=197 ctermbg=52 cterm=bold guifg=#e91e63 guibg=#681c36 gui=bold
---
> hi Error ctermfg=161 ctermbg=52 cterm=bold guifg=#e91e63 guibg=#681c36 gui=bold
51,52c51,52
< hi IncSearch ctermfg=235 ctermbg=44 cterm=bold guifg=#1e222c guibg=#169ec4 gui=bold
< hi Search ctermfg=235 ctermbg=23 cterm=NONE guifg=#1e222c guibg=#56c7ee gui=NONE
---
> hi IncSearch ctermfg=235 ctermbg=38 cterm=bold guifg=#1e222c guibg=#169ec4 gui=bold
> hi Search ctermfg=235 ctermbg=81 cterm=NONE guifg=#1e222c guibg=#56c7ee gui=NONE
64,69c64,69
< hi DiffAdd ctermfg=44 ctermbg=44 cterm=NONE guifg=#169ec4 guibg=#064253 gui=NONE
< hi DiffChange ctermfg=162 ctermbg=162 cterm=NONE guifg=#e242ac guibg=#68024b gui=NONE
< hi DiffDelete ctermfg=162 ctermbg=162 cterm=NONE guifg=#e242ac guibg=#68024b gui=NONE
< hi DiffText ctermfg=162 ctermbg=162 cterm=bold guifg=#ffc3e4 guibg=#68024b gui=bold
< hi diffAdded ctermfg=44 ctermbg=44 cterm=NONE guifg=#169ec4 guibg=#064253 gui=NONE
< hi diffRemoved ctermfg=162 ctermbg=162 cterm=NONE guifg=#e242ac guibg=#68024b gui=NONE
---
> hi DiffAdd ctermfg=38 ctermbg=23 cterm=NONE guifg=#169ec4 guibg=#064253 gui=NONE
> hi DiffChange ctermfg=162 ctermbg=89 cterm=NONE guifg=#e242ac guibg=#68024b gui=NONE
> hi DiffDelete ctermfg=162 ctermbg=89 cterm=NONE guifg=#e242ac guibg=#68024b gui=NONE
> hi DiffText ctermfg=218 ctermbg=89 cterm=bold guifg=#ffc3e4 guibg=#68024b gui=bold
> hi diffAdded ctermfg=38 ctermbg=23 cterm=NONE guifg=#169ec4 guibg=#064253 gui=NONE
> hi diffRemoved ctermfg=162 ctermbg=89 cterm=NONE guifg=#e242ac guibg=#68024b gui=NONE
71c71
< hi ErrorMsg ctermfg=197 ctermbg=NONE cterm=NONE guifg=#e91e63 guibg=NONE gui=NONE
---
> hi ErrorMsg ctermfg=161 ctermbg=NONE cterm=NONE guifg=#e91e63 guibg=NONE gui=NONE
76c76
< hi WarningMsg ctermfg=197 cterm=NONE guifg=#e91e63 gui=NONE
---
> hi WarningMsg ctermfg=161 cterm=NONE guifg=#e91e63 gui=NONE
79c79
< hi GitGutterAdd ctermfg=44 ctermbg=236 cterm=bold guifg=#169ec4 guibg=#2a303b gui=bold
---
> hi GitGutterAdd ctermfg=38 ctermbg=236 cterm=bold guifg=#169ec4 guibg=#2a303b gui=bold

Doesn't work on my mac

I installed with vim-plug and edited my ~/.config/nvim/init.vim followed:

...
call plug#begin('~/.local/share/nvim/plugged')
Plug 'yuttie/hydrangea-vim'
...
" colorscheme
colorscheme hydrangea
set termguicolors
...

E185: Cannot find color scheme 'hydrangea'

But it doesn't work with an above error. How can I fix it?
My env. is:

  • iTerm2 : Build 3.1.5
  • NeoVim: v0.2.2

Mac terminal color cast

I used vim on Mac terminal and color is not like your screenshot. Do you have terminal profile or any suggestion to fix 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.