diff options
author | aktersnurra <gustaf.rydholm@gmail.com> | 2022-10-29 19:20:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-29 19:20:48 +0200 |
commit | d2c92863069b45d4264fb9dfc167cda07d2c7f6d (patch) | |
tree | be57d453a35e0363f7c3f70c1416e266fd52a482 /lua/no-clown-fiesta/highlight-group/lsp.lua | |
parent | 2951af7bbd839ebef25e33f8bd01bd5c501f76c8 (diff) |
Update lsp groups (#13)
Diffstat (limited to 'lua/no-clown-fiesta/highlight-group/lsp.lua')
-rw-r--r-- | lua/no-clown-fiesta/highlight-group/lsp.lua | 56 |
1 files changed, 18 insertions, 38 deletions
diff --git a/lua/no-clown-fiesta/highlight-group/lsp.lua b/lua/no-clown-fiesta/highlight-group/lsp.lua index 5ebfc34..9c14700 100644 --- a/lua/no-clown-fiesta/highlight-group/lsp.lua +++ b/lua/no-clown-fiesta/highlight-group/lsp.lua @@ -2,47 +2,27 @@ local M = {} function M.highlight(palette) return { - LspDiagnosticsDefaultError = { fg = palette.error_red }, - LspDiagnosticsDefaultWarning = { fg = palette.warning_orange }, - LspDiagnosticsDefaultInformation = { fg = palette.info_yellow }, - LspDiagnosticsDefaultInfo = { fg = palette.info_yellow }, - LspDiagnosticsDefaultHint = { fg = palette.hint_blue }, - LspDiagnosticsVirtualTextError = { fg = palette.error_red }, - LspDiagnosticsVirtualTextWarning = { fg = palette.warning_orange }, - LspDiagnosticsVirtualTextInformation = { fg = palette.info_yellow }, - LspDiagnosticsVirtualTextInfo = { fg = palette.info_yellow }, - LspDiagnosticsVirtualTextHint = { fg = palette.hint_blue }, - LspDiagnosticsFloatingError = { fg = palette.error_red }, - LspDiagnosticsFloatingWarning = { fg = palette.warning_orange }, - LspDiagnosticsFloatingInformation = { fg = palette.info_yellow }, - LspDiagnosticsFloatingInfo = { fg = palette.info_yellow }, - LspDiagnosticsFloatingHint = { fg = palette.hint_blue }, - DiagnosticSignError = { fg = palette.error_red }, - DiagnosticSignWarning = { fg = palette.warning_orange }, - DiagnosticSignWarn = { fg = palette.gray }, - DiagnosticSignInformation = { fg = palette.info_yellow }, - DiagnosticSignInfo = { fg = palette.gray }, - DiagnosticSignHint = { fg = palette.gray }, - LspDiagnosticsSignError = { fg = palette.error_red }, - LspDiagnosticsSignWarning = { fg = palette.warning_orange }, - LspDiagnosticsSignInformation = { fg = palette.info_yellow }, - LspDiagnosticsSignInfo = { fg = palette.info_yellow }, - LspDiagnosticsSignHint = { fg = palette.hint_blue }, - LspDiagnosticsError = { fg = palette.error_red }, - LspDiagnosticsWarning = { fg = palette.warning_orange }, - LspDiagnosticsInformation = { fg = palette.info_yellow }, - LspDiagnosticsInfo = { fg = palette.info_yellow }, - LspDiagnosticsHint = { fg = palette.hint_blue }, - DiagnosticUnderlineError = { - sp = palette.error_red, - undercurl = true, - }, - DiagnosticUnderlineWarn = { sp = palette.warning_orange }, - DiagnosticUnderlineInfo = { sp = palette.hint_blue }, - DiagnosticUnderlineHint = { sp = palette.hint_blue }, LspReferenceRead = { bg = "#36383F" }, LspReferenceText = { bg = "#36383F" }, LspReferenceWrite = { bg = "#36383f" }, + + DiagnosticError = { fg = palette.error }, -- Used as the base highlight group. Other Diagnostic highlights link to this by default + DiagnosticWarn = { fg = palette.warning }, -- Used as the base highlight group. Other Diagnostic highlights link to this by default + DiagnosticInfo = { fg = palette.info }, -- Used as the base highlight group. Other Diagnostic highlights link to this by default + DiagnosticHint = { fg = palette.hint }, -- Used as the base highlight group. Other Diagnostic highlights link to this by default + + DiagnosticVirtualTextError = { fg = palette.error }, -- Used for "Error" diagnostic virtual text + DiagnosticVirtualTextWarn = { fg = palette.warning }, -- Used for "Warning" diagnostic virtual text + DiagnosticVirtualTextInfo = { fg = palette.info }, -- Used for "Information" diagnostic virtual text + DiagnosticVirtualTextHint = { fg = palette.hint }, -- Used for "Hint" diagnostic virtual text + + DiagnosticUnderlineError = { undercurl = true, sp = palette.error }, -- Used to underline "Error" diagnostics + DiagnosticUnderlineWarn = { undercurl = true, sp = palette.warning }, -- Used to underline "Warning" diagnostics + DiagnosticUnderlineInfo = { undercurl = true, sp = palette.info }, -- Used to underline "Information" diagnostics + DiagnosticUnderlineHint = { undercurl = true, sp = palette.hint }, -- Used to underline "Hint" diagnostics + + LspSignatureActiveParameter = { bg = palette.alt_bg, bold = true }, + LspCodeLens = { fg = palette.comment }, } end |