Skip to content

NeoSolarized colorscheme for NeoVim with full transparency

License

Notifications You must be signed in to change notification settings

expoure/NeoSolarized.nvim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🖌 NeoSolarized

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

Dark (Dark Theme with Transparency)

Screenshot_3

Dark

Screenshot_1

Light

Screenshot_2

🔥 Features

  • supports the latest Neovim 5.0 features like TreeSitter and LSP
  • better syntax highlighting
  • color configs for Kitty, Alacritty and Konsole
  • 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')

✨ 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 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.

🌟 Future Updates

Nothing is perfect. Every project needs improvements. I'll be improving this plugin. Future updates could have following improvements,

  • Language Specific Settings
  • Terminal Color Support
  • Optimization of highlight groups

🏅 Inspiration

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

About

NeoSolarized colorscheme for NeoVim with full transparency

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%