Skip to content

Ali-Aref/Gruvaa.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gruvaa.nvim

An stand alone fork of gruvbox.nvim in lua with treesitter support! Currently it's for personal usage, but any contributions are welcome.

Images
gruvaa1 gruvaa2 gruvaa3 gruvaa4 gruvaa5

Prerequisites

Neovim 0.7.0+

Installing

Using packer

use { "Ali-Aref/Gruvaa.nvim" }

Basic Usage

Inside init.vim

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

Inside init.lua

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

Configuration

Additional settings for gruvaa are:

-- setup must be called before loading the colorscheme
-- Default options:
require("gruvaa").setup({
  undercurl = true,
  underline = true,
  bold = true,
  italic = 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 = "hard", -- can be "hard", "soft" or empty string
  overrides = {},
  dim_inactive = false,
  transparent_mode = false,
})
vim.cmd("colorscheme gruvaa")

Overriding 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("gruvaa").setup({
    overrides = {
        SignColumn = {bg = "#ff9900"}
    }
})
vim.cmd("colorscheme gruvaa")

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

About

Gruvbox like color scheme

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages