• Stars
    star
    1,819
  • Rank 25,522 (Top 0.6 %)
  • Language
    Lua
  • License
    MIT License
  • Created about 4 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Lua port of the most famous vim colorscheme


gruvbox.nvim

Twitter Follow Made with Lua

A port of gruvbox community theme to lua with treesitter support!

Prerequisites

Neovim 0.8.0+

Installing

Using packer

use { "ellisonleao/gruvbox.nvim" }

Using lazy.nvim

{ "ellisonleao/gruvbox.nvim", priority = 1000 }

Basic Usage

Inside init.vim

set background=dark " or light if you want light mode
colorscheme gruvbox

Inside init.lua

vim.o.background = "dark" -- or "light" for light mode
vim.cmd([[colorscheme gruvbox]])

Configuration

Additional settings for gruvbox are:

-- setup must be called before loading the colorscheme
-- Default options:
require("gruvbox").setup({
  undercurl = true,
  underline = true,
  bold = true,
  italic = {
    strings = true,
    comments = true,
    operators = false,
    folds = true,
  },
  strikethrough = true,
  invert_selection = false,
  invert_signs = false,
  invert_tabline = false,
  invert_intend_guides = false,
  inverse = true, -- invert background for search, diffs, statuslines and errors
  contrast = "", -- can be "hard", "soft" or empty string
  palette_overrides = {},
  overrides = {},
  dim_inactive = false,
  transparent_mode = false,
})
vim.cmd("colorscheme gruvbox")

Overriding

Palette

You can specify your own palette colors. For example:

require("gruvbox").setup({
    palette_overrides = {
        bright_green = "#990000",
    }
})
vim.cmd("colorscheme gruvbox")

More colors in the palette.lua file

Highlight groups

If you don't enjoy the current color for a specific highlight group, now you can just override it in the setup. For example:

require("gruvbox").setup({
    overrides = {
        SignColumn = {bg = "#ff9900"}
    }
})
vim.cmd("colorscheme gruvbox")

Please note that the override values must follow the attributes from the highlight group map, such as:

  • fg - foreground color
  • bg - background color
  • bold - true or false for bold font
  • italic - true or false for italic font

Other values can be seen in :h synIDattr

More Repositories

1

magictools

๐ŸŽฎ ๐Ÿ“ A list of Game Development resources to make magic happen.
13,318
star
2

sharer.js

๐Ÿ”› ๐Ÿ”– Create your own social share buttons. No jquery.
JavaScript
2,007
star
3

clumsy-bird

๐Ÿฆ ๐ŸŽฎ A MelonJS port of the famous Flappy Bird Game
JavaScript
1,510
star
4

glow.nvim

A markdown preview directly in your neovim.
Lua
1,249
star
5

pyshorteners

๐Ÿ”Œ Generating short urls with python has never been easier
Python
382
star
6

nvim-plugin-template

A neovim plugin template for github repos
Lua
265
star
7

carbon-now.nvim

Create beautiful code snippets directly from your neovim terminal
Lua
166
star
8

neovimfiles

My Neovim configuration written in Lua
Lua
75
star
9

dotfiles

๐Ÿ’พ personal configuration files
Shell
44
star
10

slack-howdoi

โ˜๏ธ Slack integration with the howdoi library
HTML
42
star
11

dotenv.nvim

A minimalist .env support for Neovim
Lua
35
star
12

vl

CLI tool that helps verify current status of URIs in text files
Go
26
star
13

pybrapp

Python brasil kivy app concept - WIP
Python
24
star
14

weather.nvim

A simple weather plugin in your Neovim
Lua
23
star
15

Flask-Gist

:octocat: A simple flask extension to render Github Gists on the template
Python
14
star
16

go.nvim

Experimental Go development plugin for Neovim
Lua
14
star
17

pelican-semantic-ui

Semantic-UI Pelican Theme
HTML
12
star
18

savemydate

My wedding website
CSS
7
star
19

flask-mistune

Flask interface for mistune markdown parser
Python
7
star
20

from-vimscript-to-lua

Vim Script
6
star
21

pyzeef

๐Ÿ”Œ Python lib to consume the ZEEF's API (Unmaintained)
Python
6
star
22

howdoi

โœจ instant coding answers via the command line
Go
5
star
23

criando-plugins-lua-neovim

Cรณdigos fonte para a sรฉrie "Criando plugins Lua para Neovim"
Lua
3
star
24

fabfile-django-bootstrap

A simple fabfile.py template for django projects
3
star
25

fotolog-dl

:trollface: Easily save your Fotolog.com teenage photos.
Go
3
star
26

ellisonleao

$HOME
2
star
27

hackchallenges

Go
2
star
28

myslash

Simple Hello World Slash Command
Python
2
star
29

rest-api-go

Cรณdigo usado na talk "Sua primeira API REST com Go"
Go
2
star
30

Flask-Gamification

Gamification extension for Flask applications
2
star
31

xnacannon

Xna Cannon Game
C#
1
star
32

megplay

Webapp criado para facilitar o treinamento dos avaliadores do SEBRAE
CSS
1
star
33

ef-url-shortener

A small url shortener microservice built with Hug
Python
1
star
34

Swings

My first console game (Windows Only)
C++
1
star
35

fishboy-html5

HTML5 version of my fishboy game using MelonJS
JavaScript
1
star