use gruvbox again
This commit is contained in:
parent
dcf6d687b8
commit
70a06005fe
43
lua/plugins/gruvbox.lua
Normal file
43
lua/plugins/gruvbox.lua
Normal 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
|
||||
}
|
@ -13,6 +13,30 @@ return {
|
||||
-- NormalFloat = { bg = 'bg_visual' }
|
||||
-- }
|
||||
-- vim.g.gruvbox_dark_float = false
|
||||
vim.cmd('colorscheme gruvbox-material')
|
||||
end
|
||||
vim.g.gruvbox_material_ui_contrast = 'high'
|
||||
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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user