ishan9299 / nvim-solarized-lua

solarized colorscheme in lua for nvim 0.5
MIT License
184 stars 54 forks source link
colorscheme lua neovim nvim solarized

Solarized Neovim

This aims to be a complete port vim-solarized8 with support for lua plugins, LSP and Treesitter for neovim 0.5.

NOTE

Also added 8 bit color support.(Can't be a complete port if the theme isn't accessible for all neovim users.) I used this Javascript code to convert the rgb to neared 8 bit color.

Installation

VIM Packages

git submodule add --name nvim-solarized-lua https://github.com/ishan9299/nvim-solarized-lua
pack/packages/start/solarized

Plug

Plug 'ishan9299/nvim-solarized-lua'

Options

vim.g.solarized_italics = 1
vim.g.solarized_visibility = 'normal'
vim.g.solarized_diffmode = 'normal'
-- To enable transparency
if vim.fn.has('gui_running') == 0 then
    vim.g.solarized_termtrans = 0
else
    vim.g.solarized_termtrans = 1
end

Variants

The normal solarized scheme.
vim.cmd('colorscheme solarized')

This one has a higher contrast ratio.
vim.cmd('colorscheme solarized-high')

This is the flat variant.
vim.cmd('colorscheme solarized-flat')

This is the low contrast option.
vim.cmd('colorscheme solarized-low')

Screenshots

Screenshot from 2021-05-12 10-01-23

TODO

NOTE

Maybe Checkout