Tsuzat/NeoSolarized.nvim

github github
colorschemetreesitter-colorschemes
stars 157
issues 0
subscribers 5
forks 15
CREATED

2022-08-03

UPDATED

5 days ago


๐Ÿ–Œ NeoSolarized

A dark and light Neovim theme written in Lua ported from NeoSolarized with better syntax highlighting. Includes extra themes for Kitty, Alacritty, Wezterm, Konsole and Windows Terminal.

Dark (Dark Theme with Transparency)

Screenshot_20230430_084417

Dark

Screenshot_20230430_084549

Light

Screenshot_20230430_084640

๐Ÿ”ฅ Features

  • supports the latest Neovim 5.0 features like TreeSitter and LSP
  • better syntax highlighting
  • color configs for Kitty, Alacritty, Konsole and Wezterm
  • lualine theme

๐Ÿงจ Plugin Support

โšก๏ธ Requirements

  • Neovim >= 0.6.0

๐Ÿ’ก Installation

Install the theme with your preferred package manager:

vim-plug

Plug 'Tsuzat/NeoSolarized.nvim', { 'branch': 'master' }

packer

use ('Tsuzat/NeoSolarized.nvim')

or clone the project and install locally using packer.

First clone the project in you machine.

$ git clone https://github.com/Tsuzat/NeoSolarized.nvim

Install using packer

use ('path-to-NeoSolarized')

lazy.nvim

{
  "Tsuzat/NeoSolarized.nvim",
    lazy = false, -- make sure we load this during startup if it is your main colorscheme
    priority = 1000, -- make sure to load this before all the other start plugins
    config = function()
      vim.cmd [[ colorscheme NeoSolarized ]]
    end
}

โœจ Usage

Enable the colorscheme:

" Vim Script
colorscheme NeoSolarized
-- Lua
vim.cmd[[colorscheme NeoSolarized]]

To use the NeoSolarized theme for Lualine, simply specify it in your lualine settings:

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

โš™๏ธ Configuration

โš ๏ธ configuration needs to be set BEFORE loading the color scheme with colorscheme NeoSolarized

The theme comes in two styles, light and dark.

NeoSolarized will use the default options, unless you call setup. Here an example to set things up using default options.

local ok_status, NeoSolarized = pcall(require, "NeoSolarized")

if not ok_status then
  return
end

-- Default Setting for NeoSolarized

NeoSolarized.setup {
  style = "dark", -- "dark" or "light"
  transparent = true, -- true/false; Enable this to disable setting the background color
  terminal_colors = true, -- Configure the colors used when opening a `:terminal` in Neovim
  enable_italics = true, -- Italics for different hightlight groups (eg. Statement, Condition, Comment, Include, etc.)
  styles = {
    -- Style to be applied to different syntax groups
    comments = { italic = true },
    keywords = { italic = true },
    functions = { bold = true },
    variables = {},
    string = { italic = true },
    underline = true, -- true/false; for global underline
    undercurl = true, -- true/false; for global undercurl
  },
  -- Add specific hightlight groups
  on_highlights = function(highlights, colors) 
    -- highlights.Include.fg = colors.red -- Using `red` foreground for Includes
  end, 
}
-- Set colorscheme to NeoSolarized
vim.cmd [[
   try
        colorscheme NeoSolarized
    catch /^Vim\%((\a\+)\)\=:E18o
        colorscheme default
        set background=dark
    endtry
]]

NOTE that you can not use transparency with light mode.

โฃ๏ธ Extras

Extra color configs for Kitty, Alacritty, Wezterm and Konsole can be found in extras. To use them, refer to their respective documentation.

๐Ÿ’ฅ Contributing

Pull requests are welcome. One can add plugin and language specific highlight groups.

๐Ÿ… Inspiration

  • Plugin Structure is heavily inspired from Tokyonight
  • Classic color palettes from NeoSolarized
  • Love for Full Transparent NeoVim themes.