From 8e8eccad7268c80272c412d4ca3c05612b3957a6 Mon Sep 17 00:00:00 2001 From: Samuel K Date: Wed, 15 Dec 2021 16:00:36 +0100 Subject: [PATCH] feat(nvim): add some more colors Adding some more lspsaga colors. --- lspsaga.norg | 93 +++++++++++++++++++++++++++++++++++++++++ lua/rose-pine/theme.lua | 31 ++++++++++++++ 2 files changed, 124 insertions(+) create mode 100644 lspsaga.norg diff --git a/lspsaga.norg b/lspsaga.norg new file mode 100644 index 0000000..77ff8bc --- /dev/null +++ b/lspsaga.norg @@ -0,0 +1,93 @@ +@document.meta + title: todo + description: + author: axolotl + categories: + created: 2021-12-12 + version: 0.1 +@end + +This is just so that people can keep track of what still needs to get done, +nothing permanent. + +LspSagaBorderTitle +TargetWord +ReferencesCount +TargetFileName +LineDiagTuncateLine +LspLinesDiagBorder + +* code action + - [x] LspSagaCodeActionTitle + - [x] LspSagaCodeActionTruncateLine + - [x] LspSagaCodeActionContent + - [x] LspSagaCodeActionBorder + +* Diagnostics + - [x] DiagnosticError + - [x] DiagnosticWarning + - [x] DiagnosticInformation + - [x] DiagnosticHint + +* Definition + - [x] DefinitionIcon + - [x] DefinitionCount + - [x] DefintionPreviewTitle + +* diagnostic + - [x] LspSagaDiagnosticBorder + - [x] LspSagaDiagnosticHeader + - [x] LspSagaDiagnosticTruncateLine + +* The lightbulb that doesn't appear + - [ ] LspSagaLightBulb + - [ ] LspSagaLightBulbSign + +* float + - [x] LspFloatWinNormal + - [x] LspFloatWinBorder + - [x] LspSagaHoverBorder + +* finder + - [x] LspSagaFinderSelection + - [x] LspSagaLspFinderBorder + +* rename + - [x] LspSagaRenamePromptPrefix + - [x] LspSagaRenameBorder + +* others + - [x] LspSagaAutoPreview + - [x] LspSagaDefPreviewBorder + - [x] LspSagaDocTruncateLine + - [x] LspSagaHoverBorder + - [x] LspSagaShTruncateLine + - [x] LspSagaSignatureHelpBorder + - [x] SagaShadow + - [x] ReferencesIcon + - [ ] ProviderTruncateLine + - [ ] + + +@code lua +-- LspSaga +DiagnosticWarning = { link = "DiagnosticWarn" }, +DiagnosticInformation = { link = "DiagnosticInfo" }, + +LspFloatWinNormal = { bg = c.bg_float }, +LspFloatWinBorder = { fg = c.border_highlight }, +LspSagaBorderTitle = { fg = c.cyan }, +LspSagaHoverBorder = { fg = c.blue }, +LspSagaRenameBorder = { fg = c.green }, +LspSagaDefPreviewBorder = { fg = c.green }, +LspSagaCodeActionBorder = { fg = c.blue }, +LspSagaFinderSelection = { fg = c.bg_visual }, +LspSagaCodeActionTitle = { fg = c.blue1 }, +LspSagaCodeActionContent = { fg = c.purple }, +LspSagaSignatureHelpBorder = { fg = c.red }, +ReferencesCount = { fg = c.purple }, +DefinitionCount = { fg = c.purple }, +DefinitionIcon = { fg = c.blue }, +ReferencesIcon = { fg = c.blue }, +TargetWord = { fg = c.cyan }, +@end diff --git a/lua/rose-pine/theme.lua b/lua/rose-pine/theme.lua index c669b1d..28e2312 100644 --- a/lua/rose-pine/theme.lua +++ b/lua/rose-pine/theme.lua @@ -434,6 +434,37 @@ local theme = { }, LspSagaDiagnosticTruncateLine = { link = 'LspSagaDiagnosticBorder' }, + -- Finder + LspSagaFinderSelection = { fg = p.gold }, + LspSagaLspFinderBorder = { fg = p.subtle }, + LspSagaAutoPreview = { fg = p.subtle }, + LspSagaDefPreviewBorder = { fg = p.subtle }, + + -- Definition + DefinitionIcon = { fg = p.rose }, + DefinitionCount = { fg = p.rose }, + DefintionPreviewTitle = { + fg = p.gold, + style = "bold", + }, + LspSagaRenamePromptPrefix = { fg = p.love }, + LspSagaRenameBorder = { fg = p.subtle }, + + -- Float + LspFloatWinNormal = { bg = p.base }, + LspFloatWinBorder = { fg = p.subtle }, + LspSagaDocTruncateLine = { link = "LspSagaHoverBorder" }, + LspSagaHoverBorder = { fg = p.subtle}, + + -- Signature + LspSagaSignatureHelpBorder = { fg = p.subtle }, + LspSagaShTruncateLine = { link = "LspSagaSignatureHelpBorder" }, + + -- Others + SagaShadow = { fg = p.overlay, bg = p.overlay }, + + ReferencesIcon = { fg = p.rose }, + ReferencesCount = { fg = p.rose }, } vim.g.terminal_color_0 = p.overlay -- black