use gruvbox again

This commit is contained in:
Oliver Hartmann 2023-03-19 15:19:19 +01:00
parent dcf6d687b8
commit 70a06005fe
2 changed files with 68 additions and 1 deletions

43
lua/plugins/gruvbox.lua Normal file
View File

@ -0,0 +1,43 @@
return {
'ellisonleao/gruvbox.nvim',
priority = 1000,
config = function()
local links = {
['@lsp.type.namespace'] = '@namespace',
['@lsp.type.type'] = '@type',
['@lsp.type.class'] = '@type',
['@lsp.type.enum'] = '@type',
['@lsp.type.interface'] = '@type',
['@lsp.type.struct'] = '@structure',
['@lsp.type.parameter'] = '@parameter',
['@lsp.type.variable'] = '@variable',
['@lsp.type.property'] = '@property',
['@lsp.type.enumMember'] = '@constant',
['@lsp.type.function'] = '@function',
['@lsp.type.method'] = '@method',
['@lsp.type.macro'] = '@macro',
['@lsp.type.decorator'] = '@function',
}
for newgroup, oldgroup in pairs(links) do
vim.api.nvim_set_hl(0, newgroup, { link = oldgroup, default = true })
end
vim.api.nvim_set_hl(0, '@lsp.mod.readonly', { bold = true })
require('gruvbox').setup({
undercurl = true,
underline = true,
bold = false,
italic = true,
strikethrough = true,
invert_selection = false,
invert_signs = false,
invert_tabline = false,
invert_intend_guides = false,
palette_overrides = {},
overrides = {},
dim_inactive = true,
transparent_mode = false,
})
vim.cmd('colorscheme gruvbox')
end,
enabled = true
}

View File

@ -13,6 +13,30 @@ return {
-- NormalFloat = { bg = 'bg_visual' } -- NormalFloat = { bg = 'bg_visual' }
-- } -- }
-- vim.g.gruvbox_dark_float = false -- vim.g.gruvbox_dark_float = false
vim.cmd('colorscheme gruvbox-material') vim.g.gruvbox_material_ui_contrast = 'high'
end vim.g.gruvbox_material_dim_inactive_windows = 1 -- Dim inactive windows. Only works in neovim currently.
vim.g.gruvbox_material_disable_terminal_colors = 0
local links = {
['@lsp.type.namespace'] = '@namespace',
['@lsp.type.type'] = '@type',
['@lsp.type.class'] = '@type',
['@lsp.type.enum'] = '@type',
['@lsp.type.interface'] = '@type',
['@lsp.type.struct'] = '@structure',
['@lsp.type.parameter'] = '@parameter',
['@lsp.type.variable'] = '@variable',
['@lsp.type.property'] = '@property',
['@lsp.type.enumMember'] = '@constant',
['@lsp.type.function'] = '@function',
['@lsp.type.method'] = '@method',
['@lsp.type.macro'] = '@macro',
['@lsp.type.decorator'] = '@function',
}
-- for newgroup, oldgroup in pairs(links) do
-- vim.api.nvim_set_hl(0, newgroup, { link = oldgroup, default = true })
-- end
vim.cmd('colorscheme gruvbox-material')
vim.api.nvim_set_hl(0, '@lsp.mod.readonly', { italic = true, fg = 'Purple' })
end,
enabled = false
} }