All Projects → navarasu → onedark.nvim

navarasu / onedark.nvim

Licence: MIT license
One dark and light colorscheme for neovim >= 0.5.0 written in lua based on Atom's One Dark and Light theme. Additionally, it comes with 5 color variant styles

Programming Languages

lua
6591 projects

Projects that are alternatives of or similar to onedark.nvim

Darcula
A Vim color scheme reproduction of the official JetBrains IDE Darcula theme
Stars: ✭ 158 (-62.82%)
Mutual labels:  dark-theme, nvim
gruvqueen
Port of famous gruvbox theme in lua(inspired by gruvbox-material)
Stars: ✭ 42 (-90.12%)
Mutual labels:  dark-theme, nvim
nvim
No description or website provided.
Stars: ✭ 28 (-93.41%)
Mutual labels:  nvim, treesitter
nightfox.nvim
🦊A highly customizable theme for vim and neovim with support for lsp, treesitter and a variety of plugins.
Stars: ✭ 1,489 (+250.35%)
Mutual labels:  nvim, treesitter
kosmikoa.nvim
A dark color scheme for Neovim with support for LSP, Treesitter. This mirror is deprecated. Use the repo at https://sr.ht/~novakane/kosmikoa.nvim/
Stars: ✭ 23 (-94.59%)
Mutual labels:  nvim, treesitter
vscode.nvim
Neovim/Vim color scheme inspired by Dark+ and Light+ theme in Visual Studio Code
Stars: ✭ 362 (-14.82%)
Mutual labels:  nvim, treesitter
Comment.nvim
🧠 💪 // Smart and powerful comment plugin for neovim. Supports treesitter, dot repeat, left-right/up-down motions, hooks, and more
Stars: ✭ 796 (+87.29%)
Mutual labels:  nvim, treesitter
vim-lighthaus
A Lighthaus theme for (n)vim, vim-airline and lightline
Stars: ✭ 33 (-92.24%)
Mutual labels:  nvim, treesitter
awesome-neovim
Awesome Configurations for C/C++,Zig,Web and Lua development in NeoVim
Stars: ✭ 54 (-87.29%)
Mutual labels:  nvim, treesitter
nvim-highlite
A colorscheme template that is "lite" on logic for the developer.
Stars: ✭ 163 (-61.65%)
Mutual labels:  nvim, treesitter
aerial.nvim
Neovim plugin for a code outline window
Stars: ✭ 485 (+14.12%)
Mutual labels:  nvim
crates.nvim
A neovim plugin that helps managing crates.io dependencies
Stars: ✭ 252 (-40.71%)
Mutual labels:  nvim
aylin-vscode-theme
🌌Aylin: a modern and minimal VS Code dark theme with bright colors
Stars: ✭ 17 (-96%)
Mutual labels:  dark-theme
godot
🧛🏻‍♂️ Dark theme for Godot Engine
Stars: ✭ 24 (-94.35%)
Mutual labels:  dark-theme
mutt
🧛🏻‍♂️ Dark theme for Mutt
Stars: ✭ 25 (-94.12%)
Mutual labels:  dark-theme
org-bullets.nvim
No description or website provided.
Stars: ✭ 58 (-86.35%)
Mutual labels:  nvim
telescope-repo.nvim
🦘 Jump into the repositories (git, mercurial…) of your filesystem with telescope.nvim, without any setup
Stars: ✭ 99 (-76.71%)
Mutual labels:  nvim
Paper
A minimal notes application in Jetpack Compose with MVVM architecture. Built with components like DataStore, Coroutines, ViewModel, LiveData, Room, Navigation-Compose, Coil, koin etc.
Stars: ✭ 122 (-71.29%)
Mutual labels:  dark-theme
nord.nvim
Neovim theme based off of the Nord Color Palette, written in lua with tree sitter support
Stars: ✭ 412 (-3.06%)
Mutual labels:  nvim
gatsby-london-after-midnight
A free, open source, image-concentric starter for GatsbyJS
Stars: ✭ 37 (-91.29%)
Mutual labels:  dark-theme

    OneDark.nvim

Dark and Light Themes for neovim >= 0.5 based on Atom One Dark & Atom One Light theme written in lua with TreeSitter syntax highlight.

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

Features

  • 8 theme styles (One Dark + 5 variants) and (One Light + 1 variant)
  • Supporting multiple plugins with hand picked proper colors
  • Customize Colors, Highlights and Code style of the theme as you like (Refer Customization)
  • Toggle the theme style without exiting Neovim using shortcut <leader>ts (Refer Default Config)

Themes

Onedark - dark Onedark - darker

Onedark - cool Onedark - deep

Onedark - warm Onedark - warmer

Installation

Install via your favourite package manager

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

Configuration

Enable theme

-- Lua
require('onedark').load()
" Vim
colorscheme onedark

Change default style

-- Lua
require('onedark').setup {
    style = 'darker'
}
require('onedark').load()
" Vim
let g:onedark_config = {
    \ 'style': 'darker',
\}
colorscheme onedark

Options: dark, darker, cool, deep, warm, warmer, light

Default Configuration

-- Lua
require('onedark').setup  {
    -- Main options --
    style = 'dark', -- Default theme style. Choose between 'dark', 'darker', 'cool', 'deep', 'warm', 'warmer' and 'light'
    transparent = false,  -- Show/hide background
    term_colors = true, -- Change terminal color as per the selected theme style
    ending_tildes = false, -- Show the end-of-buffer tildes. By default they are hidden
    cmp_itemkind_reverse = false, -- reverse item kind highlights in cmp menu
    -- toggle theme style ---
    toggle_style_key = '<leader>ts', -- Default keybinding to toggle
    toggle_style_list = {'dark', 'darker', 'cool', 'deep', 'warm', 'warmer', 'light'}, -- List of styles to toggle between

    -- Change code style ---
    -- Options are italic, bold, underline, none
    -- You can configure multiple style with comma seperated, For e.g., keywords = 'italic,bold'
    code_style = {
        comments = 'italic',
        keywords = 'none',
        functions = 'none',
        strings = 'none',
        variables = 'none'
    },

    -- Custom Highlights --
    colors = {}, -- Override default colors
    highlights = {}, -- Override highlight groups

    -- Plugins Config --
    diagnostics = {
        darker = true, -- darker colors for diagnostic
        undercurl = true,   -- use undercurl instead of underline for diagnostics
        background = true,    -- use background color for virtual text
    },
}

Vimscript configuration

Onedark can be configured also with Vimscript, using the global dictionary g:onedark_config. NOTE: when setting boolean values use v:true and v:false instead of 0 and 1

Example:

let g:onedark_config = {
  \ 'style': 'deep',
  \ 'toggle_style_key': '<leader>ts',
  \ 'ending_tildes': v:true,
  \ 'diagnostics': {
    \ 'darker': v:false,
    \ 'background': v:false,
  \ },
\ }
colorscheme onedark

Customization

Example custom colors and Highlights config

require('onedark').setup {
  colors = {
    bright_orange = "#ff8800",    -- define a new color
    green = '#00ffaa',            -- redefine an existing color
  },
  highlights = {
    TSKeyword = {fg = '$green'},
    TSString = {fg = '$bright_orange', bg = '#00ff00', fmt = 'bold'},
    TSFunction = {fg = '#0000ff', sp = '$cyan', fmt = 'underline,italic'},
  }
}

Plugins Configuration

Enable lualine

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

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

Plugins Supported

Reference

Contributing

Pull requests are welcome 🎉👍.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].