Home

Awesome

shaunsingh/solarized.nvim

based off of the Solarized Light Theme for Vim

<img width="1163" alt="120370710-f2647780-c2e2-11eb-87af-6835fc8a7783" src="https://user-images.githubusercontent.com/71196912/120493248-c8fe2700-c388-11eb-8336-c01789f97e24.png">

Features

solarized.nvim is meant to be a modern colorscheme written in lua for NeoVim that supports a lot of the new features added to NeoVim like built-in LSP and TreeSitter

⚡️ Requirements

Installation

Install via your favourite package manager:

" If you are using Vim-Plug
Plug 'shaunsingh/solarized.nvim'
-- If you are using Packer
use 'shaunsingh/solarized.nvim'

Usage

Enable the colorscheme:

"Vim-Script:
colorscheme solarized
--Lua:
require('solarized').set()

To enable the solarized theme for Lualine, simply specify it in your lualine settings:

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

⚙️ Configuration

OptionDefaultDescription
solarized_italic_commentsfalseMake comments italic
solarized_italic_keywordsfalseMake keywords italic
solarized_italic_functionsfalseMake functions italic
solarized_italic_variablesfalseMake variables and identifiers italic
solarized_contrasttrueMake sidebars and popup menus like nvim-tree and telescope have a different background
solarized_bordersfalseEnable the border between verticaly split windows visable
solarized_disable_backgroundfalseDisable the setting of background color so that NeoVim can use your terminal background
-- Example config in lua
vim.g.solarized_italic_comments = true
vim.g.solarized_italic_keywords = true
vim.g.solarized_italic_functions = true
vim.g.solarized_italic_variables = false
vim.g.solarized_contrast = true
vim.g.solarized_borders = false
vim.g.solarized_disable_background = false

-- Load the colorscheme
require('solarized').set()
" Example config in Vim-Script
let g:solarized_italic_comments = v:true
let g:solarized_italic_keywords = v:true
let g:solarized_italic_functions = v:true
let g:solarized_italic_variables = v:false
let g:solarized_contrast = v:true
let g:solarized_borders = v:false
let g:solarized_disable_background = v:false

" Load the colorsheme
colorscheme solarized