style(lspsaga): remove comments and rearrange

Remove uneeded comments and rearrange some code
This commit is contained in:
Samuel K 2021-12-16 18:25:03 +01:00
commit 81faeeedd5

View file

@ -413,7 +413,9 @@ local theme = {
-- LspSaga -- LspSaga
-- https://github.com/tami5/lspsaga.nvim (fork of https://github.com/glepnir/lspsaga.nvim) -- https://github.com/tami5/lspsaga.nvim (fork of https://github.com/glepnir/lspsaga.nvim)
-- CodeActions DiagnosticInformation = { link = 'DiagnosticInfo' },
DiagnosticWarning = { link = 'DiagnosticWarn' },
LspSagaCodeActionTitle = { LspSagaCodeActionTitle = {
fg = p.rose, fg = p.rose,
style = 'bold', style = 'bold',
@ -421,52 +423,34 @@ local theme = {
LspSagaCodeActionBorder = { fg = p.subtle }, LspSagaCodeActionBorder = { fg = p.subtle },
LspSagaCodeActionTruncateLine = { link = 'LspSagaCodeActionBorder' }, LspSagaCodeActionTruncateLine = { link = 'LspSagaCodeActionBorder' },
LspSagaCodeActionContent = { fg = p.foam }, LspSagaCodeActionContent = { fg = p.foam },
-- Diagnostics
DiagnosticInformation = { link = 'DiagnosticInfo' },
DiagnosticWarning = { link = 'DiagnosticWarn' },
-- DiagnosticPopUp
LspSagaDiagnosticBorder = { fg = p.subtle }, LspSagaDiagnosticBorder = { fg = p.subtle },
LspSagaDiagnosticHeader = { LspSagaDiagnosticHeader = {
fg = p.foam, fg = p.foam,
style = 'bold', style = 'bold',
}, },
LspSagaDiagnosticTruncateLine = { link = 'LspSagaDiagnosticBorder' }, LspSagaDiagnosticTruncateLine = { link = 'LspSagaDiagnosticBorder' },
-- Finder
LspSagaFinderSelection = { fg = p.gold }, LspSagaFinderSelection = { fg = p.gold },
LspSagaLspFinderBorder = { fg = p.subtle }, LspSagaLspFinderBorder = { fg = p.subtle },
LspSagaAutoPreview = { fg = p.subtle }, LspSagaAutoPreview = { fg = p.subtle },
LspSagaDefPreviewBorder = { fg = p.subtle }, LspSagaDefPreviewBorder = { fg = p.subtle },
-- Definition
DefinitionIcon = { fg = p.rose }, DefinitionIcon = { fg = p.rose },
DefinitionCount = { fg = p.rose }, DefinitionCount = { fg = p.rose },
ReferencesCount = { fg = p.rose }, ReferencesCount = { fg = p.rose },
ReferencesIcon = { fg = p.rose }, ReferencesIcon = { fg = p.rose },
DefintionPreviewTitle = { DefintionPreviewTitle = {
fg = p.rose, fg = p.rose,
style = "bold", style = "bold",
}, },
LspSagaRenamePromptPrefix = { fg = p.love }, LspSagaRenamePromptPrefix = { fg = p.love },
LspSagaRenameBorder = { fg = p.pine }, LspSagaRenameBorder = { fg = p.pine },
-- Float
LspFloatWinNormal = { bg = p.base }, LspFloatWinNormal = { bg = p.base },
LspFloatWinBorder = { fg = p.subtle }, LspFloatWinBorder = { fg = p.subtle },
LspSagaDocTruncateLine = { link = "LspSagaHoverBorder" }, LspSagaDocTruncateLine = { link = "LspSagaHoverBorder" },
LspSagaHoverBorder = { fg = p.subtle}, LspSagaHoverBorder = { fg = p.subtle},
-- Signature
LspSagaSignatureHelpBorder = { fg = p.pine }, LspSagaSignatureHelpBorder = { fg = p.pine },
LspSagaShTruncateLine = { link = "LspSagaSignatureHelpBorder" }, LspSagaShTruncateLine = { link = "LspSagaSignatureHelpBorder" },
-- TargetWord
TargetWord = { fg = p.iris }, TargetWord = { fg = p.iris },
-- Others
SagaShadow = { bg = p.overlay }, SagaShadow = { bg = p.overlay },
} }