ishan9299/nvim-solarized-lua

github github
treesitter-colorschemes plugin
star 48
stars
alert-circle 6
open issues
users 4
subscribers
git-branch 9
forks
CREATED

2021-03-31

UPDATED

2 days ago

packer

require('packer').startup(function()
  use 'ishan9299/nvim-solarized-lua'
end)

paq

require "paq" { 
  'ishan9299/nvim-solarized-lua'
}

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

  • italics Enable italics for comments (default: enabled)
vim.g.solarized_italics = 1
  • visibility SpecialChars (like trailing whitespace and tabs) visibility
    • low
    • normal (default)
    • high
vim.g.solarized_visibility = 'normal'
  • diffmode
    • low
    • normal (default)
    • high
vim.g.solarized_diffmode = 'normal'
  • termtrans If you want to keep the transparency in your terminal (default: disabled)
-- To enable transparency
if vim.fn.has('gui_running') == 0 then
    vim.g.solarized_termtrans = 0
else
    vim.g.solarized_termtrans = 1
end
  • statusline
    • low
    • flat
    • normal (default)
vim.g.solarized_statusline = 'normal'

NOTE :-

  • If you set statusline option's normal and flat are the same when using the solarized-flat colorscheme.
  • This option doesn't affect the lua line plugin it has it's own solarized theme.

Variants

  • solarized

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

  • solarized-high

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

  • solarized-flat

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

  • solarized-low

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

Screenshots

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

TODO

  • The light colorscheme
  • Plugins :-
    • LSP
    • Treesitter
    • Telescope
    • FZF
    • lualine
    • lspsaga

NOTE

  • Thanks for lifepillar's vim-solarized8 for providing most of the highlights and color codes for this scheme.
  • If you have an issue with the highlight groups in theme open an issue but also mention the variant of the colorscheme you are using.
  • If any more plugins are needed then open an issue.

Maybe Checkout