Coder Social home page Coder Social logo

shaunsingh / solarized.nvim Goto Github PK

View Code? Open in Web Editor NEW
178.0 5.0 37.0 51 KB

Port of the Solarized colorscheme for vim, written in lua, with treesitter support.

License: GNU General Public License v2.0

Lua 97.60% Vim Script 2.40%
neovim solarized nvim colorscheme theme

solarized.nvim's Introduction

shaunsingh/solarized.nvim

based off of the Solarized Light Theme for Vim

120370710-f2647780-c2e2-11eb-87af-6835fc8a7783

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

  • Neovim >= 0.5.0

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

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

solarized.nvim's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

solarized.nvim's Issues

How does LSP support matter for a colorscheme?

I haven't kept up to date with the soon-to-be but yet unreleased neovim features, but just started looking today, and found this project. I can see how a colorscheme could take advantage of tree-sitter, but in your readme you also call out the "built-in LSP" neovim feature.

I'm just curious, but can you tell me how that has anything to do with a colorscheme?

Async highlight command causes intro to disappear

If you're not using any startup plugins like alpha, startify, etc. then neovim shows intro text on startup.

When using this theme (which I love, btw, thank you!) it's not showing that intro text on startup:

image

You can see it again with :intro:
image

If I modify lua/solarized/util.lua to not use async for loading plugins/treesitter/lsp highlights then the intro displays on startup like expected:
image

So it must be that running the highlight commands async like that triggers some event that clears the intro.

Would you consider changing it to not load plugins, treesitter, and lsp async? Or was there some significant performance improvement that motivated you to load them async?

Cursorline and CursorColumn

Hi, I love this port of my beloved vim theme.
The only things I'm missing are the Cursorline and CursorColumn.
Are these possible??

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.