开源软件名称(OpenSource Name):ellisonleao/gruvbox.nvim开源软件地址(OpenSource Url):https://github.com/ellisonleao/gruvbox.nvim开源编程语言(OpenSource Language):Lua 99.2%开源软件介绍(OpenSource Introduction):A port of gruvbox community theme to lua with treesitter support! PrerequisitesNeovim 0.7.0+ InstallingUsing use { "ellisonleao/gruvbox.nvim" } Basic UsageInside set background=dark " or light if you want light mode
colorscheme gruvbox Inside vim.o.background = "dark" -- or "light" for light mode
vim.cmd([[colorscheme gruvbox]]) ConfigurationAdditional settings for gruvbox are: -- setup must be called before loading the colorscheme
-- Default options:
require("gruvbox").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 = "", -- can be "hard", "soft" or empty string
overrides = {},
})
vim.cmd("colorscheme gruvbox") Overriding Highlight groupsIf 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:
Other values can be seen in |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论