feat(neovim): theme touch ups

This commit is contained in:
Alexandre Cavalheiro 2024-10-22 18:53:35 -03:00
parent fe1c913ad8
commit 0c401df0ad
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF
2 changed files with 56 additions and 25 deletions

View file

@ -1,5 +1,4 @@
require("mini.base16").setup({
palette = {
local colors = {
base00 = "#303446", -- base
base01 = "#292c3c", -- mantle
base02 = "#414559", -- surface0
@ -16,7 +15,40 @@ require("mini.base16").setup({
base0D = "#8caaee", -- blue
base0E = "#ca9ee6", -- mauve
base0F = "#eebebe", -- flamingo
},
}
require("mini.base16").setup({
palette = colors,
})
vim.g.colors_name = "catppuccin-frappe-base16"
local function hl(highlight, options)
vim.api.nvim_set_hl(0, highlight, options)
end
local function fg(color)
return { fg = color, bg = nil, attr = nil, sp = nil }
end
----------------------------
-- Further customizations --
----------------------------
-- General
hl("Delimiter", fg(colors.base05))
hl("Tag", fg(colors.base08))
-- Treesitter
hl("@keyword.return", fg(colors.base0E))
hl("@variable", fg(colors.base08))
-- Tags
hl("@tag.attribute", fg(colors.base09))
hl("@tag.delimiter", fg(colors.base05))
-- LSP Semantic Highlight
hl("@lsp.mod.deprecated", fg(colors.base0F))
hl("@lsp.type.parameter", fg(colors.base05))
hl("@lsp.type.property", fg(colors.base05))
hl("@lsp.type.variable", fg(colors.base08))

View file

@ -30,6 +30,8 @@ return {
{
"xiyaowong/transparent.nvim",
opts = function(_, opts)
local transparent = require("transparent")
opts.groups = {
"Comment",
"Conditional",
@ -77,13 +79,7 @@ return {
"LineNrAbove",
"LineNrBelow",
"LineNrBelow",
"NeoTreeFloatBoarder",
"NeoTreeMessage",
"NeoTreeNormal",
"NeoTreeTabSeparatorActive",
"NeoTreeTabSeparatorInactive",
"NeoTreeVertSplit",
"NeoTreeWinSeparator",
"NvimTreeWindowPicker",
"TabLine",
"TabLineFill",
"VertSplit",
@ -91,6 +87,9 @@ return {
"WinBarNC",
"WinSeparator",
}
transparent.clear_prefix("BufferLine")
transparent.clear_prefix("NeoTree")
end,
},