Skip to content

shrikecode/kyotonight.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kyoto Night NeoVim / Vim theme

A dark, elegant, and easy on the eyes Neovim / Vim theme, based on Tokyo Night color palette, with support for bunch of plugins.

Screenshots

Plugins visible in screenshots

Why another Tokyo Night VIM theme...

I'm aware that there already is a Tokyo Night NeoVim theme, but I find it a little too flashy. So, I decided to make my own, that would be closer to Enki's SublimeText Theme, and easier for the eyes. Added bonus is that this theme works in NeoVim as well as in regular Vim.

About

Colorscheme inspired by Enki Theme variant Tokyo Night, made using Tokyo Night color pallette. The theme's code is based on Nord Theme (because I suck at Lua and VimScript + Nord's tame color combinations is what I needed, at least initally).

Installation

Vim-plug

Plug 'shrikecode/kyotonight.vim'

Packer

use 'shrikecode/kyotonight.vim'

Configuration

All supported config options are basically ported from Nord Theme, below is list of them with default values. Make sure these are configured before calling colorscheme kyotonight.

General config

  1. VimScript

    let g:kyotonight_bold = 1
    let g:kyotonight_underline = 1
    let g:kyotonight_italic = 0
    let g:kyotonight_italic_comments = 0
    let g:kyotonight_uniform_status_lines = 0
    let g:kyotonight_cursor_line_number_background = 0
    let g:kyotonight_uniform_diff_background = 0
    let g:kyotonight_lualine_bold = 1
    
    colorscheme kyotonight
  2. Lua

    local g = vim.g
    
    g.kyotonight_bold = 1
    g.kyotonight_underline = 1
    g.kyotonight_italic = 0
    g.kyotonight_italic_comments = 0
    g.kyotonight_uniform_status_lines = 0
    g.kyotonight_bold_vertical_split_line = 0
    g.kyotonight_cursor_line_number_background = 0
    g.kyotonight_uniform_diff_background = 0
    g.kyotonight_lualine_bold = 1
    
    vim.cmd[[colorscheme kyotonight]]

Lualine

  1. Lua

    require('lualine').setup {
      options = {
        theme = 'kyotonight'
      }
    }

Lightline

Normally Lightline theme should be applied automatically if it isn't set in your configuration already.

  1. VimScript

    let g:lightline = {'colorscheme': 'kyotonight'}
  2. Lua

    vim.g.lightline = {colorscheme = 'kyotonight'}

Airline

As with Lightline, the theme should be applied together with colorscheme. You might set it manually as well.

  1. VimScript

    let g:airline_theme='kyotonight'
  2. Lua

    vim.g.airline_theme='kyotonight'

Overrriding colors

All of the theme colors can be overriden by setting correct variable.

  1. Examples

    1. VimScript

      let g:kyotonight#red = ['#fff000', '1'] " hex color, then terminal color number
    2. Lua

      vim.g['kyotonight#red'] = {'#fff000', '1'} -- hex color, then terminal color number
  2. List of color variables

    1. VimScript

      g:kyotonight#none   
      g:kyotonight#cl     
      g:kyotonight#hl     
      g:kyotonight#black0 
      g:kyotonight#bg     
      g:kyotonight#black1 
      g:kyotonight#grey0  
      g:kyotonight#grey1  
      g:kyotonight#fg     
      g:kyotonight#cream  
      g:kyotonight#cyan1  
      g:kyotonight#teal   
      g:kyotonight#blue1  
      g:kyotonight#blue0  
      g:kyotonight#cyan0  
      g:kyotonight#red    
      g:kyotonight#orange 
      g:kyotonight#yellow 
      g:kyotonight#green  
      g:kyotonight#magenta
    2. Lua

      vim.g['kyotonight#none']
      vim.g['kyotonight#cl']
      vim.g['kyotonight#hl']
      vim.g['kyotonight#black0']
      vim.g['kyotonight#bg']
      vim.g['kyotonight#black1']
      vim.g['kyotonight#grey0']
      vim.g['kyotonight#grey1']
      vim.g['kyotonight#fg']
      vim.g['kyotonight#cream']
      vim.g['kyotonight#cyan1']
      vim.g['kyotonight#teal']
      vim.g['kyotonight#blue1']
      vim.g['kyotonight#blue0']
      vim.g['kyotonight#cyan0']
      vim.g['kyotonight#red']
      vim.g['kyotonight#orange']
      vim.g['kyotonight#yellow']
      vim.g['kyotonight#green']
      vim.g['kyotonight#magenta']

Supported plugins

Extras

Ackowledgements

  • Enki for wonderful Tokyo Night theme
  • Folke for bringing it to NeoVim
  • ArcticIceStudio for Nord Theme for Vim, on which code of this theme is based on