From 70a06005fe77caa7f2500a947986a8815a2109f2 Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Sun, 19 Mar 2023 15:19:19 +0100 Subject: [PATCH] use gruvbox again --- lua/plugins/gruvbox.lua | 43 ++++++++++++++++++++++++++++++++ lua/plugins/gruvbox_material.lua | 26 ++++++++++++++++++- 2 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 lua/plugins/gruvbox.lua diff --git a/lua/plugins/gruvbox.lua b/lua/plugins/gruvbox.lua new file mode 100644 index 0000000..5dd4111 --- /dev/null +++ b/lua/plugins/gruvbox.lua @@ -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 +} diff --git a/lua/plugins/gruvbox_material.lua b/lua/plugins/gruvbox_material.lua index c8f952b..e8d8c99 100644 --- a/lua/plugins/gruvbox_material.lua +++ b/lua/plugins/gruvbox_material.lua @@ -13,6 +13,30 @@ return { -- NormalFloat = { bg = 'bg_visual' } -- } -- vim.g.gruvbox_dark_float = false + 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') - end + vim.api.nvim_set_hl(0, '@lsp.mod.readonly', { italic = true, fg = 'Purple' }) + end, + enabled = false }