From 77907be854b8018d0c8db89d3437024e08f372f0 Mon Sep 17 00:00:00 2001 From: gbprod Date: Thu, 9 Nov 2023 16:37:05 +0100 Subject: [PATCH] feat: support illuminate (#51) * feat: support illuminate * feat: support codeium * fix: spell --- README.md | 2 ++ lua/nord/defaults.lua | 13 ++++--------- lua/nord/plugins/completion.lua | 2 ++ lua/nord/plugins/ui.lua | 4 ++++ 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index ba11376..202b5f2 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,8 @@ and [the official vscode theme](https://github.com/arcticicestudio/nord-visual-s - [RainbowDelimiter](https://github.com/HiPhish/rainbow-delimiters.nvim) - [Neogit](https://github.com/NeogitOrg/neogit) - [highlight-undo.nvim](https://github.com/tzachar/highlight-undo.nvim) +- [Illuminate](https://github.com/RRethy/vim-illuminate) +- [Codeium](https://github.com/Exafunction/codeium.vim) You're preferred plugin is missing ? Open an issue or, even better, open a pull request 😉. diff --git a/lua/nord/defaults.lua b/lua/nord/defaults.lua index 9305066..647a5a1 100644 --- a/lua/nord/defaults.lua +++ b/lua/nord/defaults.lua @@ -49,15 +49,10 @@ function defaluts.highlights() or { fg = c.snow_storm.brightest, bg = c.frost.ice }, -- 'incsearch' highlighting; also used for the text replaced with ":s///c" CurSearch = { link = "IncSearch" }, SpecialKey = { fg = c.polar_night.brightest }, -- Unprintable characters: text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace| - SpellBad = { fg = c.aurora.red, bg = global_bg, sp = c.aurora.red, undercurl = true }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise. - SpellCap = { fg = c.aurora.yellow, bg = global_bg, sp = c.aurora.yellow, undercurl = true }, -- Word that should start with a capital. |spell| Combined with the highlighting used otherwise. - SpellLocal = { fg = c.snow_storm.brighter, bg = global_bg, sp = c.snow_storm.brighter, undercurl = true }, -- 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.snow_storm.brightest, - bg = global_bg, - sp = c.snow_storm.brightest, - undercurl = true, - }, -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise. + SpellBad = { sp = c.aurora.red, undercurl = true }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise. + SpellCap = { sp = c.aurora.yellow, undercurl = true }, -- Word that should start with a capital. |spell| Combined with the highlighting used otherwise. + SpellLocal = { sp = c.snow_storm.brighter, undercurl = true }, -- 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.snow_storm.brightest, bg = global_bg, sp = c.snow_storm.brightest, undercurl = true }, -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise. StatusLine = { fg = c.frost.ice, bg = c.polar_night.brighter }, -- status line of current window StatusLineNC = { fg = c.snow_storm.origin, bg = c.polar_night.brightest }, -- 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 = { fg = c.snow_storm.origin, bg = c.fg_gutter }, -- tab pages line, not active tab page label diff --git a/lua/nord/plugins/completion.lua b/lua/nord/plugins/completion.lua index e92db45..94c9b40 100644 --- a/lua/nord/plugins/completion.lua +++ b/lua/nord/plugins/completion.lua @@ -15,6 +15,8 @@ function cmp.highlights() CmpItemKindMethod = { fg = c.aurora.purple }, CmpItemKindSnippet = { fg = c.aurora.green }, CmpItemKindText = { fg = c.snow_storm.origin }, + + CodeiumSuggestion = { fg = c.polar_night.light }, } end diff --git a/lua/nord/plugins/ui.lua b/lua/nord/plugins/ui.lua index e4073ca..72ac5ec 100644 --- a/lua/nord/plugins/ui.lua +++ b/lua/nord/plugins/ui.lua @@ -119,6 +119,10 @@ function ui.highlights() -- tzachar/highlight-undo.nvim HighlightUndo = { link = "Search" }, + + IlluminatedWordText = { fg = c.none, bg = c.polar_night.brightest }, + IlluminatedWordRead = { fg = c.none, bg = c.polar_night.brightest }, + IlluminatedWordWrite = { fg = c.none, bg = c.polar_night.brightest }, } end