• Stars
    star
    143
  • Rank 255,484 (Top 6 %)
  • Language
    Python
  • License
    MIT License
  • Created about 7 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Hydrangea theme for Vim.

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! 😎