• Stars
    star
    1,500
  • Rank 30,114 (Top 0.7 %)
  • Language
    Lua
  • License
    MIT License
  • Created over 3 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.
12,671
star
2

sharer.js

🔛 🔖 Create your own social share buttons. No jquery.
JavaScript
1,962
star
3

clumsy-bird

🐦 🎮 A MelonJS port of the famous Flappy Bird Game
JavaScript
1,484
star
4

glow.nvim

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

pyshorteners

🔌 Generating short urls with python has never been easier
Python
373
star
6

nvim-plugin-template

A neovim plugin template for github repos
Lua
202
star
7

carbon-now.nvim

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

neovimfiles

My Neovim configuration written in Lua
Lua
73
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
27
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

go.nvim

Experimental Go development plugin for Neovim
Lua
15
star
16

Flask-Gist

:octocat: A simple flask extension to render Github Gists on the template
Python
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
7
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
4
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

hackchallenges

Go
2
star
27

myslash

Simple Hello World Slash Command
Python
2
star
28

rest-api-go

Código usado na talk "Sua primeira API REST com Go"
Go
2
star
29

Flask-Gamification

Gamification extension for Flask applications
2
star
30

ellisonleao

$HOME
1
star
31

xnacannon

Xna Cannon Game
C#
1
star
32

fishboy-html5

HTML5 version of my fishboy game using MelonJS
JavaScript
1
star
33

megplay

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

ef-url-shortener

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

Swings

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