Skip to content

Commit

Permalink
fix highlight for statusline
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoppippi committed Aug 15, 2023
1 parent 87d80e8 commit 0f311b0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions nvim/lua/config/options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,5 @@ end

vim.opt.pumblend = 10
vim.opt.laststatus = 0
vim.cmd([[set statusline=%{repeat('─',winwidth('.'))}]])
vim.opt.showcmd = false
9 changes: 6 additions & 3 deletions nvim/lua/plugin/kanagawa.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
local DEFUALT_THEME = "dragon"
local TRANSPARENT = true
return {
"rebelot/kanagawa.nvim",
priority = vim.env.NVIM_COLORSCHEME == "kanagawa" and 1000 or 50,
Expand All @@ -17,8 +18,10 @@ return {
overrides = function(colors)
local theme = colors.theme
return {
StatusLine = { bg = theme.ui.bg_p1, fg = theme.ui.fg_dim },
StatusLineNC = { bg = theme.ui.bg_p1, fg = theme.ui.fg_dim },
-- StatusLine {{
StatusLine = { fg = theme.ui.fg_dim, bg = not TRANSPARENT and theme.ui.bg or "NONE" },
StatusLineNC = { fg = theme.ui.fg_dim, bg = not TRANSPARENT and theme.ui.bg or "NONE" },
-- }}

-- Telescope {{
TelescopeTitle = { fg = theme.ui.special, bold = true },
Expand Down Expand Up @@ -48,7 +51,7 @@ return {
}
end,
globalStatus = true,
transparent = true,
transparent = TRANSPARENT,
theme = DEFUALT_THEME,
}
end,
Expand Down

0 comments on commit 0f311b0

Please sign in to comment.