config for solid FloatBorder

This commit is contained in:
Michael Chris Lopez
2021-10-20 17:14:48 +08:00
parent b2898b692b
commit 9429f2064e
5 changed files with 17 additions and 19 deletions

View File

@@ -12,10 +12,6 @@ local function generate(p, opt)
vim.notify(error_msg, vim.log.levels.WARN)
end
local darken_comments = opt.darken_comments or 38
local comment_gui = opt.comment_gui or "italic"
local darken_linenr = opt.darken_linenr
-- stylua: ignore start
local theme = lush(function()
return {
@@ -41,7 +37,7 @@ local function generate(p, opt)
ErrorMsg { Error }, -- error messages on the command line
WarningMsg { fg = p.wood }, -- warning messages
Comment { fg = p.bg.da(darken_comments).de(28), gui = comment_gui }, -- any comment
Comment { fg = p.bg.da(opt.darken_comments or 38).de(28), gui = opt.comment_gui or "italic" }, -- any comment
Conceal { fg = p.fg.li(20), gui = "bold,italic" }, -- placeholder characters substituted for concealed text (see 'conceallevel')
Cursor { bg = p.fg, fg = p.bg.li(20) }, -- character under the cursor
@@ -59,7 +55,7 @@ local function generate(p, opt)
DiffDelete { bg = p.rose.saturation(40).lightness(normal_bg.l - 6) }, -- diff mode: Deleted line |diff.txt|
DiffText { bg = p.water.saturation(30).lightness(normal_bg.l - 18), fg = p.fg }, -- diff mode: Changed text within a changed line |diff.txt|
LineNr { fg = Normal.bg.da(32), bg = darken_linenr and Normal.bg.da(4) or "NONE" }, -- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is set.
LineNr { fg = Normal.bg.da(32), bg = opt.darken_linenr and Normal.bg.da(4) or "NONE" }, -- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is set.
SignColumn { LineNr }, -- column where |signs| are displayed
FoldColumn { LineNr, gui = "bold" }, -- 'foldcolumn'
Folded { bg = Normal.bg.da(16), fg = Normal.bg.da(64) }, -- line used for closed folds
@@ -70,7 +66,7 @@ local function generate(p, opt)
-- MsgSeparator { }, -- Separator for scrolled messages, `msgsep` flag of 'display'
MoreMsg { fg = p.leaf, gui = "bold" }, -- |more-prompt|
NormalFloat { bg = Normal.bg.da(6) }, -- Normal text in floating windows.
FloatBorder { fg = Normal.bg.da(50) }, -- Normal text in floating windows.
FloatBorder { fg = Normal.bg.da(50), bg = opt.solid_float_border and NormalFloat.bg or "NONE" }, -- Normal text in floating windows.
Pmenu { bg = Normal.bg.da(10) }, -- Popup menu: normal item.
PmenuSel { bg = Normal.bg.da(20) }, -- Popup menu: selected item.
@@ -306,7 +302,7 @@ local function generate(p, opt)
TelescopeSelection { CursorLine },
TelescopeSelectionCaret { TelescopeSelection, fg = p.rose },
TelescopeMatching { fg = p.blossom, gui = "bold" },
TelescopeBorder { FloatBorder },
TelescopeBorder { fg = FloatBorder.fg },
Sneak { Search },
SneakLabel { WildMenu },