Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shaunsingh/solarized.nvim
Port of the Solarized colorscheme for vim, written in lua, with treesitter support.
https://github.com/shaunsingh/solarized.nvim
colorscheme neovim nvim solarized theme
Last synced: 2 months ago
JSON representation
Port of the Solarized colorscheme for vim, written in lua, with treesitter support.
- Host: GitHub
- URL: https://github.com/shaunsingh/solarized.nvim
- Owner: shaunsingh
- License: gpl-2.0
- Created: 2021-06-01T16:38:28.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-04-21T14:20:04.000Z (6 months ago)
- Last Synced: 2024-06-25T22:42:20.112Z (3 months ago)
- Topics: colorscheme, neovim, nvim, solarized, theme
- Language: Lua
- Homepage:
- Size: 49.8 KB
- Stars: 179
- Watchers: 5
- Forks: 37
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# shaunsingh/solarized.nvim
## based off of the [Solarized Light Theme](https://github.com/altercation/vim-colors-solarized) for Vim
## 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](https://github.com/nvim-treesitter/nvim-treesitter)+ Supported plugins:
+ [TreeSitter](https://github.com/nvim-treesitter/nvim-treesitter)
+ [LSP Diagnostics](https://neovim.io/doc/user/lsp.html)
+ [Lsp Saga](https://github.com/glepnir/lspsaga.nvim)
+ [LSP Trouble](https://github.com/folke/lsp-trouble.nvim)
+ [Git Gutter](https://github.com/airblade/vim-gitgutter)
+ [git-messenger](https://github.com/rhysd/git-messenger.vim)
+ [Git Signs](https://github.com/lewis6991/gitsigns.nvim)
+ [Telescope.nvim](https://github.com/nvim-telescope/telescope.nvim)
+ [Nvim-Tree.lua](https://github.com/kyazdani42/nvim-tree.lua)
+ [NERDTree](https://github.com/preservim/nerdtree)
+ [vim-which-key](https://github.com/liuchengxu/vim-which-key)
+ [Indent-Blankline.nvim](https://github.com/lukas-reineke/indent-blankline.nvim)
+ [WhichKey](https://github.com/liuchengxu/vim-which-key)
+ [Dashboard](https://github.com/glepnir/dashboard-nvim)
+ [BufferLine](https://github.com/akinsho/nvim-bufferline.lua)
+ [Lualine](https://github.com/hoob3rt/lualine.nvim)
+ [Neogit](https://github.com/TimUntersberger/neogit)
+ [vim-sneak](https://github.com/justinmk/vim-sneak)+ Ability to change background on sidebar-like windows like Nvim-Tree, Packer, terminal etc.
+ Added functions for live theme switching without the need to restart NeoVim
## ⚡️ Requirements
+ Neovim >= 0.5.0
## Installation
Install via your favourite package manager:
```vim
" If you are using Vim-Plug
Plug 'shaunsingh/solarized.nvim'
``````lua
-- If you are using Packer
use 'shaunsingh/solarized.nvim'
```## Usage
Enable the colorscheme:
```vim
"Vim-Script:
colorscheme solarized
``````lua
--Lua:
require('solarized').set()
```To enable the `solarized` theme for `Lualine`, simply specify it in your lualine settings:
```lua
require('lualine').setup {
options = {
-- ... your lualine config
theme = 'solarized'
-- ... your lualine config
}
}
```## ⚙️ Configuration
| Option | Default | Description |
| ----------------------------------- | ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| solarized_italic_comments | `false` | Make comments italic |
| solarized_italic_keywords | `false` | Make keywords italic |
| solarized_italic_functions | `false` | Make functions italic |
| solarized_italic_variables | `false` | Make variables and identifiers italic |
| solarized_contrast | `true` | Make sidebars and popup menus like nvim-tree and telescope have a different background |
| solarized_borders | `false` | Enable the border between verticaly split windows visable
| solarized_disable_background | `false` | Disable the setting of background color so that NeoVim can use your terminal background```lua
-- 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()
``````vim
" 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
```