A Dark Theme for neovim >= 0.8 based on Atom One Dark Theme written in lua with TreeSitter syntax highlight. Additionally, it comes with 5 more color variant styles
- 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
- TreeSitter
- LSPDiagnostics
- NvimTree
- Telescope
- WhichKey
- Dashboard
- Lualine
- GitGutter
- GitSigns
- VimFugitive
- DiffView
- Hop
colorscheme onedark
Default
- Default one dark theme based on Atom One Dark Theme
let g:onedark_style = 'darker'
colorscheme onedark
let g:onedark_style = 'cool'
colorscheme onedark
let g:onedark_style = 'deep'
colorscheme onedark
let g:onedark_style = 'warm'
colorscheme onedark
let g:onedark_style = 'warmer'
colorscheme onedark
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
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
}
}
By pressing <leader>cs
, we can switch the style without exiting neovim
let g:onedark_style = 'darker' " We need add the configs before colorscheme line
colorscheme onedark
vim.g.onedark_style = 'deep'
require('onedark').setup()
let g:onedark_transparent_background = 1 " By default it is 0
colorscheme onedark
vim.g.onedark_transparent_background = true -- By default it is false
require('onedark').setup()
let g:onedark_italic_comment = 0 " By default it is 1
colorscheme onedark
vim.g.onedark_italic_comment = false -- By default it is true
require('onedark').setup()
let g:onedark_disable_toggle_style = 1 " By default it is 0
colorscheme onedark
vim.g.onedark_disable_toggle_style = true -- By default it is false
require('onedark').setup()
let g:onedark_diagnostics_undercurl = 0 " By default it is 1
colorscheme onedark
vim.g.onedark_diagnostics_undercurl = false -- By default it is true
require('onedark').setup()
let g:onedark_darker_diagnostics = 0 " By default it is 1
colorscheme onedark
vim.g.onedark_darker_diagnostics = false -- By default it is true
require('onedark').setup()
Pull requests are welcome 🎉👍.