chore(fmt): stylua
This commit is contained in:
@@ -39,16 +39,12 @@ function M.setup_highlights()
|
|||||||
local cline_hl = get_hl_by_name('CursorLine')
|
local cline_hl = get_hl_by_name('CursorLine')
|
||||||
local string_hl = get_hl_by_name('String')
|
local string_hl = get_hl_by_name('String')
|
||||||
|
|
||||||
vim.api.nvim_set_hl(
|
vim.api.nvim_set_hl(0, 'OutlineCurrent', {
|
||||||
0,
|
|
||||||
'OutlineCurrent',
|
|
||||||
{
|
|
||||||
bg = cline_hl.bg,
|
bg = cline_hl.bg,
|
||||||
fg = string_hl.fg,
|
fg = string_hl.fg,
|
||||||
ctermbg = cline_hl.ctermbg,
|
ctermbg = cline_hl.ctermbg,
|
||||||
ctermfg = string_hl.ctermfg,
|
ctermfg = string_hl.ctermfg,
|
||||||
}
|
})
|
||||||
)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Only inherit fg for these highlights because we do not want the other
|
-- Only inherit fg for these highlights because we do not want the other
|
||||||
@@ -56,9 +52,9 @@ function M.setup_highlights()
|
|||||||
-- can look normal when on top of it. This can be customized by setting these
|
-- can look normal when on top of it. This can be customized by setting these
|
||||||
-- highlights before outline.setup() is called, or using winhl.
|
-- highlights before outline.setup() is called, or using winhl.
|
||||||
for name, link in pairs({ Guides = 'Comment', FoldMarker = 'Normal' }) do
|
for name, link in pairs({ Guides = 'Comment', FoldMarker = 'Normal' }) do
|
||||||
if vim.fn.hlexists('Outline'..name) == 0 then
|
if vim.fn.hlexists('Outline' .. name) == 0 then
|
||||||
local h = get_hl_by_name(link)
|
local h = get_hl_by_name(link)
|
||||||
vim.api.nvim_set_hl(0, 'Outline'..name, { fg = h.fg, ctermfg = h.fg })
|
vim.api.nvim_set_hl(0, 'Outline' .. name, { fg = h.fg, ctermfg = h.fg })
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user