feat(ui): Improve FocusedSymbol highlight

This commit is contained in:
Simrat Grewal
2022-08-11 14:55:54 -07:00
parent 40bbb96359
commit 65742f3b93

View File

@@ -28,7 +28,14 @@ function M.setup_highlights()
-- Setup the FocusedSymbol highlight group if it hasn't been done already by
-- a theme or manually set
if vim.fn.hlexists 'FocusedSymbol' == 0 then
vim.cmd 'hi FocusedSymbol term=italic,bold cterm=italic ctermbg=yellow ctermfg=darkblue gui=bold,italic guibg=yellow guifg=darkblue'
local cline_hl = vim.api.nvim_get_hl_by_name('CursorLine', true)
local string_hl = vim.api.nvim_get_hl_by_name('String', true)
vim.api.nvim_set_hl(
0,
'FocusedSymbol',
{ bg = cline_hl.background, fg = string_hl.foreground }
)
end
-- Some colorschemes do some funky things with the comment highlight, most