Code Monkey home page Code Monkey logo

nvim-solarized-lua's Introduction

Solarized Neovim

This aims to be a complete port vim-solarized8 with support for lua plugins, LSP and Treesitter for neovim 0.5.

NOTE

Also added 8 bit color support.(Can't be a complete port if the theme isn't accessible for all neovim users.) I used this Javascript code to convert the rgb to neared 8 bit color.

Installation

VIM Packages

git submodule add --name nvim-solarized-lua https://github.com/ishan9299/nvim-solarized-lua
pack/packages/start/solarized

Plug

Plug 'ishan9299/nvim-solarized-lua'

Options

  • italics Enable italics for comments (default: enabled)
vim.g.solarized_italics = 1
  • visibility SpecialChars (like trailing whitespace and tabs) visibility
    • low
    • normal (default)
    • high
vim.g.solarized_visibility = 'normal'
  • diffmode
    • low
    • normal (default)
    • high
vim.g.solarized_diffmode = 'normal'
  • termtrans If you want to keep the transparency in your terminal (default: disabled)
-- To enable transparency
if vim.fn.has('gui_running') == 0 then
    vim.g.solarized_termtrans = 0
else
    vim.g.solarized_termtrans = 1
end
  • statusline
    • low
    • flat
    • normal (default)
vim.g.solarized_statusline = 'normal'

NOTE :-

  • If you set statusline option's normal and flat are the same when using the solarized-flat colorscheme.
  • This option doesn't affect the lua line plugin it has it's own solarized theme.

Variants

  • solarized

The normal solarized scheme.
vim.cmd('colorscheme solarized')

  • solarized-high

This one has a higher contrast ratio.
vim.cmd('colorscheme solarized-high')

  • solarized-flat

This is the flat variant.
vim.cmd('colorscheme solarized-flat')

  • solarized-low

This is the low contrast option.
vim.cmd('colorscheme solarized-low')

Screenshots

Screenshot from 2021-05-12 10-01-23

TODO

  • The light colorscheme
  • Plugins :-
    • LSP
    • Treesitter
    • Telescope
    • FZF
    • lualine
    • lspsaga
    • nvim-navic

NOTE

  • Thanks for lifepillar's vim-solarized8 for providing most of the highlights and color codes for this scheme.
  • If you have an issue with the highlight groups in theme open an issue but also mention the variant of the colorscheme you are using.
  • If any more plugins are needed then open an issue.

Maybe Checkout

nvim-solarized-lua's People

Contributors

ishan9299 avatar simachri avatar app avatar aruhier avatar bryanforbes avatar chrs8 avatar greenhat avatar luator avatar rbjorklin avatar samdoshi avatar sbruder avatar xpmo avatar

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.