Coder Social home page Coder Social logo

dmix / onedark.nvim Goto Github PK

View Code? Open in Web Editor NEW

This project forked from navarasu/onedark.nvim

0.0 0.0 0.0 77 KB

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: MIT License

Vim Script 1.78% Lua 98.22%

onedark.nvim's Introduction

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. If you want to disable this mapping see configuration)
  • 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 change style variant of one dark

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

To enable transparent background

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()

To disable italic comment

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()

To disable toggle style using shortcut

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()

To use underline instead of undercurl for diagnostics

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()

To make diagnostics look brighter

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()

Reference

Contributing

Pull requests are welcome ๐ŸŽ‰๐Ÿ‘.

License

MIT

onedark.nvim's People

Contributors

cljoly avatar dmix avatar geodimm avatar julpikar avatar navarasu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.