local colors = require('cosmic.core.theme.colors') local highlight = require('cosmic.utils').highlight local M = {} function M.init() -- diagnostic virtual text highlights highlight('DiagnosticVirtualTextError', 'None', colors.error) highlight('DiagnosticVirtualTextWarn', 'None', colors.warn) highlight('DiagnosticVirtualTextInfo', 'None', colors.info) highlight('DiagnosticVirtualTextHint', 'None', colors.hint) -- diagnostics highlight highlight('DiagnosticError', 'None', colors.error) highlight('DiagnosticWarn', 'None', colors.warn) highlight('DiagnosticInfo', 'None', colors.info) highlight('DiagnosticHint', 'None', colors.hint) highlight('Error', 'None', colors.error) highlight('ErrorMsg', 'None', colors.error) highlight('WarningMsg', 'None', colors.warn) -- legacy diagnostics highlight highlight('LspDiagnosticsError', 'None', colors.error) highlight('LspDiagnosticsWarn', 'None', colors.warn) highlight('LspDiagnosticsInfo', 'None', colors.info) highlight('LspDiagnosticsHint', 'None', colors.hint) -- signature highlight color highlight('LspSignatureActiveParameter', 'None', colors.orange) -- currently not working? highlight('TelescopeSelectionCaret', 'None', colors.selection_caret) -- autocomplete highlights highlight('CmpItemAbbrDeprecated', colors.warn) -- todo: needs to highlight after lsp start, why? idk vim.cmd([[ highlight clear NormalFloat highlight link NormalFloat Normal ]]) end return M