Home

Awesome

OneDark

A dark Neovim theme written in Lua. Includes extra themes for Kitty and Alacritty

<img width="1680" alt="Screen Shot 2021-05-23 at 3 48 41 PM" src="https://user-images.githubusercontent.com/8846086/119279210-16d39c00-bbdf-11eb-8604-b7258c8ff72e.png"> <img width="1680" alt="Screen Shot 2021-05-23 at 2 51 04 PM" src="https://user-images.githubusercontent.com/8846086/119279233-32d73d80-bbdf-11eb-8bad-34c92cb48ab2.png">

✨ Features

Plugin Support

⚡️ Requirements

📦 Installation

Install the theme with your preferred package manager:

vim-plug

Plug 'monsonjeremy/onedark.nvim'

packer

use({ 'monsonjeremy/onedark.nvim' })
-- use this branch for new treesitter highlights 
use({ 'monsonjeremy/onedark.nvim', branch = 'treesitter' })

🚀 Usage

Enable the colorscheme:

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

To enable the onedark theme for Lualine, simply specify it in your lualine settings:

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

To enable the onedark colorscheme for Lightline:

" Vim Script
let g:lightline = {'colorscheme': 'onedark'}

⚙️ Configuration

❗️ configuration needs to be set BEFORE loading the color scheme with colorscheme onedark

OptionDefaultDescription
commentStyleitalicHighlight style for comments (check :help highlight-args for options)
keywordStyleitalicHighlight style for keywords (check :help highlight-args for options)
functionStyleNONEHighlight style for functions (check :help highlight-args for options)
variableStyleNONEHighlight style for variables and identifiers (check :help highlight-args for options)
transparentfalseEnable this to disable setting the background color
hideInactiveStatuslinefalseEnabling this option, will hide inactive statuslines and replace them with a thin border instead. Should work with the standard StatusLine and LuaLine.
sidebars{}Set a darker background on sidebar-like windows. For example: {"qf", "vista_kind", "terminal", "packer"}
darkSidebartrueSidebar like windows like NvimTree get a darker background
darkFloattrueFloat windows like the lsp diagnostics windows get a darker background.
colors{}You can override specific color groups to use other groups or a hex color
customTelescopefalseBetter telescope colors
-- Example config in Lua
require("onedark").setup({
  functionStyle = "italic",
  sidebars = {"qf", "vista_kind", "terminal", "packer"},

  -- Change the "hint" color to the "orange" color, and make the "error" color bright red
  colors = {hint = "orange", error = "#ff0000"}
})
" Example config in vimscript
lua << EOF
require("onedark").setup({
  functionStyle = "italic",
  sidebars = {"qf", "vista_kind", "terminal", "packer"},

  -- Change the "hint" color to the "orange" color, and make the "error" color bright red
  colors = {hint = "orange", error = "#ff0000"}
})

Making undercurls work properly in Tmux

To have undercurls show up and in color, add the following to your Tmux config file:

# Undercurl
set -g default-terminal "${TERM}"
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'  # undercurl support
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'  # underscore colours - needs tmux-3.0

🍭 Extras

Extra color configs for Kitty, and Alacritty can be found in extras. To use them, refer to their respective documentation.

<img width="825" alt="Screen Shot 2021-05-23 at 2 49 57 PM" src="https://user-images.githubusercontent.com/8846086/119279221-23f08b00-bbdf-11eb-885e-c2c238aa1c04.png">

Support

<a href="https://www.buymeacoffee.com/monsonjeremy" target="_blank"> <img src="https://cdn.buymeacoffee.com/buttons/v2/default-violet.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" > </a>