Skip to content

One Dark Theme for Neovim >= 0.5.0 written in lua based on Atom's One Dark UI Theme. Additionally, it comes with 5 color variant styles

License

Notifications You must be signed in to change notification settings

svo393/onedark.nvim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OneDark.nvim

A Dark Theme for neovim >= 0.5 based on Atom One Dark Theme written in lua with TreeSitter syntax highlight. Additionally, it comes with 5 more color variant styles

For Vim / Neovim < 0.5, prefer joshdick/onedark.vim

Features

  • 6 styles (default one dark + 5 color variants)
  • Changing the style without exiting Neovim (using shortcut key <leader>cs )
  • Supported mulitple plugins with hand picked proper colors

Plugins Supported

Styles

Dark

colorscheme onedark

Default - Default one dark theme based on Atom One Dark Theme

onedark

Darker

let g:onedark_style = 'darker'
colorscheme onedark

onedark-darker

Cool

let g:onedark_style = 'cool'
colorscheme onedark

onedark-cool

Deep

let g:onedark_style = 'deep'
colorscheme onedark

onedark-deep

Warm

let g:onedark_style = 'warm'
colorscheme onedark

onedark-warm

Warmer

let g:onedark_style = 'warmer'
colorscheme onedark

onedark-warmer

Installation

Install via your favourite package manager

" Using Vim-Plug
Plug 'navarasu/onedark.nvim'
-- Using Packer
use 'navarasu/onedark.nvim'

Install manually

git clone https://github.com/navarasu/onedark.nvim ~/.config/nvim
nvim +PackerSync

Requirements

Usage

Enable the colorscheme:

" Vim-Script:
colorscheme onedark
-- Lua:
require('onedark').setup()

To Enable the onedark theme for Lualine, specify theme as onedark:

require('lualine').setup {
  options = {
    theme = 'onedark'
    -- ... your lualine config
  }
}

Toggle style

By pressing <leader>cs, we can switch the style without exiting neovim

Config

To set style variant of one dark

let g:onedark_style = 'darker'  " We need add the configs before colorscheme line
colorscheme onedark
-- Lua:
vim.g.onedark_style = 'deep'
require('onedark').setup()

Reference

Contributing

Pull requests are welcome 🎉👍.

License

MIT

About

One Dark Theme for Neovim >= 0.5.0 written in lua based on Atom's One Dark UI Theme. Additionally, it comes with 5 color variant styles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 98.1%
  • Vim Script 1.9%