Giter Site home page Giter Site logo

sharpchen / eva-theme.nvim Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 2.0 81 KB

A comfortable and semantic theme for NeoVim

License: MIT License

Lua 100.00%
colorscheme neovim neovim-plugin vim neovim-lua neovim-theme neovim-theme-dark neovim-theme-lua

eva-theme.nvim's Introduction

Eva-Theme.nvim

A semantic coloring code colorscheme for NeoVim ported from Eva-Theme

Supports both Dark and Light modes, with four styles available for each mode: Normal, Bold, Italic, and Italic Bold.

๐ŸŒ™ Dark

dark1

โ˜€ Light

light2

๐Ÿ›  Installation

{
  'sharpchen/Eva-Theme.nvim',
  lazy = false,
  priority = 1000,
}

๐ŸŽฏ Usage

VimScript

colo Eva-Dark " or any other variant
" colo Eva-Light
" colo Eva-Dark-Bold
" colo Eva-Light-Bold
" colo Eva-Dark-Italic
" colo Eva-Light-Italic
" colo Eva-Dark-Italic-Bold
" colo Eva-Light-Italic-Bold

Lua

vim.cmd('colo Eva-Dark') -- or any variant

โš™ Options

Override palette

Specifiy colors for dark and light variants, specified values will be taken while the rest remains default.

All highlight groups uses certain overrided color will be affected, something unexpected might happen. To override more specificly, use override_highlight

For palette structure, see: palette.lua

require('Eva-Theme').setup({
  override_palette = {
    dark = {
      operator = '#RRGGBB'
      git = {
        diffAdded = '#RRGGBB'
      }
    },
    light = {
      declarative = '#RRGGBB'
    }
  }
})

Override highlight

To customize any highlight group for different variants, you can put function callbacks or tables of key-value pair inside override_highlight.

require('Eva-Theme').setup({
  override_highlight = {
    dark = {
      ['@foo'] = { fg = '#RRGGBB', bg = '#RRGGBB' },
    },
    ['@foo'] = function(variant)
      return { fg = require('Eva-Theme.utils').is_dark(variant) and '#RRGGBB' or '#RRGGBB' }
    end,
  },
})

eva-theme.nvim's People

Contributors

sharpchen avatar

Stargazers

TomDan avatar Mr.LAU avatar WillKirkmanM avatar Justin avatar

Watchers

Lucian avatar  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.