From 0f311b06ec9cedc7889a68d538701c6b20565085 Mon Sep 17 00:00:00 2001 From: ryoppippi <1560508+ryoppippi@users.noreply.github.com> Date: Tue, 15 Aug 2023 09:13:33 +0100 Subject: [PATCH] fix highlight for statusline --- nvim/lua/config/options.lua | 1 + nvim/lua/plugin/kanagawa.lua | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/nvim/lua/config/options.lua b/nvim/lua/config/options.lua index dc6b0775b..1dccaaaa7 100644 --- a/nvim/lua/config/options.lua +++ b/nvim/lua/config/options.lua @@ -68,4 +68,5 @@ end vim.opt.pumblend = 10 vim.opt.laststatus = 0 +vim.cmd([[set statusline=%{repeat('─',winwidth('.'))}]]) vim.opt.showcmd = false diff --git a/nvim/lua/plugin/kanagawa.lua b/nvim/lua/plugin/kanagawa.lua index fa3c75efb..3d019523f 100644 --- a/nvim/lua/plugin/kanagawa.lua +++ b/nvim/lua/plugin/kanagawa.lua @@ -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, @@ -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 }, @@ -48,7 +51,7 @@ return { } end, globalStatus = true, - transparent = true, + transparent = TRANSPARENT, theme = DEFUALT_THEME, } end,