2023-11-18 02:27:14 +02:00
|
|
|
-- Colorscheme
|
2023-11-25 14:37:36 +02:00
|
|
|
--- @type LazyPluginSpec
|
2023-11-18 02:27:14 +02:00
|
|
|
return {
|
|
|
|
"rebelot/kanagawa.nvim",
|
2024-01-25 15:30:12 +02:00
|
|
|
dependencies = { { "f-person/auto-dark-mode.nvim", config = true } },
|
2023-11-25 14:37:36 +02:00
|
|
|
--- @type KanagawaConfig
|
2023-11-18 02:27:14 +02:00
|
|
|
opts = {
|
2023-11-17 08:01:52 +02:00
|
|
|
compile = true,
|
|
|
|
dimInactive = true,
|
|
|
|
colors = {
|
|
|
|
theme = {
|
|
|
|
all = {
|
|
|
|
ui = {
|
|
|
|
bg_gutter = "none", -- Hide gutter background
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
background = {
|
|
|
|
dark = "wave",
|
|
|
|
light = "lotus",
|
|
|
|
},
|
|
|
|
overrides = function(colors)
|
|
|
|
local theme = colors.theme
|
|
|
|
return {
|
|
|
|
-- Transparent floating windows
|
|
|
|
NormalFloat = { bg = "none" },
|
|
|
|
FloatBorder = { bg = "none" },
|
|
|
|
FloatTitle = { bg = "none" },
|
|
|
|
NormalDark = { fg = theme.ui.fg_dim, bg = theme.ui.bg_m3 },
|
|
|
|
LazyNormal = { bg = theme.ui.bg_m3, fg = theme.ui.fg_dim },
|
|
|
|
MasonNormal = { bg = theme.ui.bg_m3, fg = theme.ui.fg_dim },
|
|
|
|
|
|
|
|
-- Block-like modern Telescope UI
|
|
|
|
TelescopeTitle = { fg = theme.ui.special, bold = true },
|
|
|
|
TelescopePromptNormal = { bg = theme.ui.bg_p1 },
|
|
|
|
TelescopePromptBorder = { fg = theme.ui.bg_p1, bg = theme.ui.bg_p1 },
|
|
|
|
TelescopeResultsNormal = { fg = theme.ui.fg_dim, bg = theme.ui.bg_m1 },
|
|
|
|
TelescopeResultsBorder = { fg = theme.ui.bg_m1, bg = theme.ui.bg_m1 },
|
|
|
|
TelescopePreviewNormal = { bg = theme.ui.bg_dim },
|
|
|
|
TelescopePreviewBorder = { bg = theme.ui.bg_dim, fg = theme.ui.bg_dim },
|
|
|
|
|
|
|
|
-- More uniform look for the popup menu
|
|
|
|
Pmenu = { fg = theme.ui.shade0, bg = theme.ui.bg_p1, blend = vim.o.pumblend },
|
|
|
|
PmenuSel = { fg = "NONE", bg = theme.ui.bg_p2 },
|
|
|
|
PmenuSbar = { bg = theme.ui.bg_m1 },
|
|
|
|
PmenuThumb = { bg = theme.ui.bg_p2 },
|
|
|
|
}
|
|
|
|
end,
|
2023-11-18 02:27:14 +02:00
|
|
|
},
|
2023-11-25 14:37:36 +02:00
|
|
|
--- @param opts KanagawaConfig
|
2023-11-18 21:41:50 +02:00
|
|
|
config = function(_, opts)
|
|
|
|
require("kanagawa").setup(opts)
|
2023-11-18 02:27:14 +02:00
|
|
|
vim.cmd("colorscheme kanagawa")
|
|
|
|
end,
|
|
|
|
}
|