From fc7301ab94cc1dd6a46bafc565183c5f2b86f802 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Wed, 12 May 2021 11:18:48 +0200 Subject: [PATCH] fix: spelling and markdown links --- lua/tokyonight/theme.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lua/tokyonight/theme.lua b/lua/tokyonight/theme.lua index 12d5cd4..e2b8dab 100644 --- a/lua/tokyonight/theme.lua +++ b/lua/tokyonight/theme.lua @@ -60,10 +60,10 @@ function M.setup(config) Search = { bg = c.bg_search, fg = c.fg }, -- Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out. IncSearch = { bg = c.orange, fg = c.black }, -- 'incsearch' highlighting; also used for the text replaced with ":s///c" SpecialKey = { fg = c.dark3 }, -- Unprintable characters: text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace| - SpellBad = { fg = c.error, style = "undercurl" }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise. - SpellCap = { fg = c.warning, style = "undercurl" }, -- Word that should start with a capital. |spell| Combined with the highlighting used otherwise. - SpellLocal = { fg = c.info, style = "undercurl" }, -- Word that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise. - SpellRare = { fg = c.hint, style = "undercurl" }, -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise. + SpellBad = { sp = c.error, style = "undercurl" }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise. + SpellCap = { sp = c.warning, style = "undercurl" }, -- Word that should start with a capital. |spell| Combined with the highlighting used otherwise. + SpellLocal = { sp = c.info, style = "undercurl" }, -- Word that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise. + SpellRare = { sp = c.hint, style = "undercurl" }, -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise. StatusLine = { fg = c.fg_sidebar, bg = c.bg_statusline }, -- status line of current window StatusLineNC = { fg = c.fg_gutter, bg = c.bg_statusline }, -- status lines of not-current windows Note: if this is equal to "StatusLine" Vim will use "^^^" in the status line of the current window. TabLine = { bg = c.bg_statusline, fg = c.fg_gutter }, -- tab pages line, not active tab page label @@ -139,6 +139,7 @@ function M.setup(config) mkdCodeDelimiter = { bg = c.terminal_black, fg = c.fg }, mkdCodeStart = { fg = c.teal, style = "bold" }, mkdCodeEnd = { fg = c.teal, style = "bold" }, + mkdLink = { fg = c.blue, style = "underline" }, markdownH1 = { fg = c.magenta, style = "bold" }, markdownH1Delimiter = { fg = c.magenta }, markdownH2 = { fg = c.blue, style = "bold" }, @@ -268,7 +269,7 @@ function M.setup(config) NeogitRemote = { fg = c.purple }, NeogitHunkHeader = { bg = c.bg_highlight, fg = c.fg }, NeogitHunkHeaderHighlight = { bg = c.fg_gutter, fg = c.blue }, - NeogitDiffContextHighlight = { bg = util.darken(c.fg_gutter, .5), fg = c.fg_dark }, + NeogitDiffContextHighlight = { bg = util.darken(c.fg_gutter, 0.5), fg = c.fg_dark }, NeogitDiffDeleteHighlight = { fg = c.git.delete, bg = c.diff.delete }, NeogitDiffAddHighlight = { fg = c.git.add, bg = c.diff.add },