Skip to content

Commit

Permalink
theme: enable transparent theme
Browse files Browse the repository at this point in the history
Signed-off-by: Avimitin <dev@avimit.in>
  • Loading branch information
Avimitin committed Nov 20, 2023
1 parent cf8c9ff commit a45a27f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 34 deletions.
4 changes: 1 addition & 3 deletions lua/note/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,10 @@ pack("lukas-reineke/headlines.nvim", {
config = function()
require("headlines").setup({
markdown = {
fat_headlines = false,
headline_highlights = { "Headline1", "Headline2", "Headline3" },
},
org = {
fat_headlines = false,
headline_highlights = false,
headline_highlights = { "Headline1", "Headline2", "Headline3" },
},
})
end,
Expand Down
2 changes: 1 addition & 1 deletion lua/ui/bufferline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ require("bufferline").setup({
enforce_regular_tabs = false,
view = "multiwindow",
show_buffer_close_icons = true,
separator_style = "slant",
separator_style = "thin",
always_show_bufferline = true,
},
})
Expand Down
35 changes: 5 additions & 30 deletions lua/ui/kanagawa.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,6 @@ local function override(colors)
local default = colors.palette
local theme = colors.theme

local background = default.sumiInk1
if vim.cfg.ui.darker_background then
if type(vim.cfg.ui.darker_background) == "string" then
background = vim.cfg.ui.darker_background
else
background = "#0d1117"
end
end

local overrides = {
CmpDocumentation = { link = "Pmenu" },
CmpItemKindField = { link = "@field" },
Expand All @@ -22,27 +13,10 @@ local function override(colors)
DiagnosticSignHint = { bg = "#1C1E2A" },
DiagnosticSignInfo = { bg = "#262729" },
DiagnosticSignWarn = { bg = "#2F261A" },
GitSignsAdd = { bg = background },
GitSignsChange = { bg = background },
GitSignsDelete = { bg = background },
GitSignsAdd = { bg = default.sumiInk1 },
GitSignsChange = { bg = default.sumiInk1 },
GitSignsDelete = { bg = default.sumiInk1 },
HighLightLineMatches = { bg = default.winterYellow },
--[[ LeapBackdrop = { fg = default.dragonBlue },
LeapMatch = { fg = default.fujiWhite, bold = true, nocombine = true },
LeapLabelPrimary = {
fg = default.sumiInk4,
bg = default.roninYellow,
bold = true,
nocombine = true,
},
LeapLabelSecondary = {
fg = default.springBlue,
bold = true,
nocombine = true,
}, ]]
Normal = {
bg = background,
fg = default.fujiWhite,
},
Pmenu = { bg = default.sumiInk3 },
TelescopePromptNormal = { fg = theme.ui.fg_dim, bg = theme.ui.bg_p1 },
TelescopePromptBorder = { fg = theme.ui.bg_p1, bg = theme.ui.bg_p1 },
Expand All @@ -55,7 +29,7 @@ local function override(colors)
TelescopeTitle = { fg = theme.ui.special, bold = true },
WinSeparator = { fg = default.sumiInk4 },
CodeBlock = { bg = default.sumiInk0 },
Headline1 = { bg = "#1A1F19" },
Headline1 = { bg = "#21001D" },
Headline2 = { bg = "#151F2D" },
Headline3 = { bg = default.sumiInk3 },
["@text.title.1"] = {
Expand Down Expand Up @@ -109,6 +83,7 @@ require("kanagawa").setup({
dark = "wave",
light = "lotus",
},
transparent = true,
})

vim.cmd("colorscheme kanagawa")

0 comments on commit a45a27f

Please sign in to comment.