Skip to content

Commit 0f311b0

Browse files
committed
fix highlight for statusline
1 parent 87d80e8 commit 0f311b0

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

nvim/lua/config/options.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,5 @@ end
6868

6969
vim.opt.pumblend = 10
7070
vim.opt.laststatus = 0
71+
vim.cmd([[set statusline=%{repeat('─',winwidth('.'))}]])
7172
vim.opt.showcmd = false

nvim/lua/plugin/kanagawa.lua

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
local DEFUALT_THEME = "dragon"
2+
local TRANSPARENT = true
23
return {
34
"rebelot/kanagawa.nvim",
45
priority = vim.env.NVIM_COLORSCHEME == "kanagawa" and 1000 or 50,
@@ -17,8 +18,10 @@ return {
1718
overrides = function(colors)
1819
local theme = colors.theme
1920
return {
20-
StatusLine = { bg = theme.ui.bg_p1, fg = theme.ui.fg_dim },
21-
StatusLineNC = { bg = theme.ui.bg_p1, fg = theme.ui.fg_dim },
21+
-- StatusLine {{
22+
StatusLine = { fg = theme.ui.fg_dim, bg = not TRANSPARENT and theme.ui.bg or "NONE" },
23+
StatusLineNC = { fg = theme.ui.fg_dim, bg = not TRANSPARENT and theme.ui.bg or "NONE" },
24+
-- }}
2225

2326
-- Telescope {{
2427
TelescopeTitle = { fg = theme.ui.special, bold = true },
@@ -48,7 +51,7 @@ return {
4851
}
4952
end,
5053
globalStatus = true,
51-
transparent = true,
54+
transparent = TRANSPARENT,
5255
theme = DEFUALT_THEME,
5356
}
5457
end,

0 commit comments

Comments
 (0)