codedark.nvim
A Lua port of vim-code-dark colorscheme for neovim
π
Color Palette
#οΈ Supported Plugins
β¬οΈ
Installation
Install via package manager
-- Using Packer:
use 'Mofiqul/codedark.nvim'
" Using Vim-Plug:
Plug 'Mofiqul/codedark.nvim'
π
Usage
-- Lua:
vim.cmd[[colorscheme codedark]]
" Vim-Script:
colorscheme codedark
If you are using lualine
, you can also enable the provided theme:
Make sure to set theme as 'codedark-nvim' as codedark already exists in lualine built in themes
require('lualine').setup {
options = {
-- ...
theme = 'codedark-nvim'
-- ...
}
}'
π
Terminal support
If the colors seem to be wrong
If your terminal supports 256 colors (see this script) you can set:
-- Lua:
vim.g.codedark_term256 = 1
-- Vim-Script:
let g:codedark_term256=1
β
FAQ
What is and how to enable the conservative mode?
If you don't like many colors and prefer the conservative style of the standard Visual Studio, you can try the conservative mode with reduced number of colors. To enable it, put the following line to your init.vim
or init.lua
before setting the scheme, like so:
-- Lua:
vim.g.codedark_conservative = 1
vim.cmd[[colorscheme codedark]]
" Vim-Script:
let g:codedark_conservative = 1
colorscheme codedark
Something is broken but I know how to fix it!
Pull requests are welcome! Feel free to send one with an explanation!