From 26a8058564080affa4db0cb28d8dc900ab64d803 Mon Sep 17 00:00:00 2001 From: FollieHiyuki Date: Tue, 13 Jul 2021 01:59:55 +0300 Subject: [PATCH] neovim: nord highlight groups for lsp --- README.md | 1 + home/.config/nvim/lua/colors/nord.lua | 28 ++++++++++++++++++++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 290a83c..8df4aed 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ - [x] Migrate zsh to [zinit](https://github.com/zdharma/zinit) - [x] Wayland compositors - [x] New Neovim config in Lua + - [ ] OneDark highlight groups - [ ] ~~[ion](https://github.com/redox-os/ion)~~ / [oksh](https://github.com/ibara/oksh) / [nushell](https://www.nushell.sh/) / [oil](https://www.oilshell.org/) / [xonsh](https://xon.sh/) / ~~[elvish](https://elv.sh/)~~ / [oh](https://github.com/michaelmacinnis/oh) - [ ] NixOS / Guix / Gentoo / FreeBSD - [ ] Independent ~/.emacs.d diff --git a/home/.config/nvim/lua/colors/nord.lua b/home/.config/nvim/lua/colors/nord.lua index f67c2a4..12ce2d0 100644 --- a/home/.config/nvim/lua/colors/nord.lua +++ b/home/.config/nvim/lua/colors/nord.lua @@ -226,7 +226,33 @@ end -- LSP groups local function highlight_lsp() - -- TODO + hi('LspDiagnosticsDefaultError', c.red, '', '', '') + hi('LspDiagnosticsSignError', c.red, '', '', '') + hi('LspDiagnosticsFloatingError', c.red, '', '', '') + hi('LspDiagnosticsVirtualTextError', c.red, '', 'italic', '') + hi('LspDiagnosticsUnderlineError', '', '', 'undercurl', c.red) + + hi('LspDiagnosticsDefaultWarning', c.yellow, '', '', '') + hi('LspDiagnosticsSignWarning', c.yellow, '', '', '') + hi('LspDiagnosticsFloatingWarning', c.yellow, '', '', '') + hi('LspDiagnosticsVirtualTextWarning', c.yellow, '', 'italic', '') + hi('LspDiagnosticsUnderlineWarning', '', '', 'undercurl', c.yellow) + + hi('LspDiagnosticsDefaultInformation', c.blue, '', '', '') + hi('LspDiagnosticsSignInformation', c.blue, '', '', '') + hi('LspDiagnosticsFloatingInformation', c.blue, '', '', '') + hi('LspDiagnosticsVirtualTextInformation', c.blue, '', 'italic', '') + hi('LspDiagnosticsUnderlineInformation', '', '', 'undercurl', c.blue) + + hi('LspDiagnosticsDefaultHint', c.cyan, '', '', '') + hi('LspDiagnosticsSignHint', c.cyan, '', '', '') + hi('LspDiagnosticsFloatingHint', c.cyan, '', '', '') + hi('LspDiagnosticsVirtualTextHint', c.cyan, '', 'italic', '') + hi('LspDiagnosticsUnderlineHint', '', '', 'undercurl', c.cyan) + + hi('LspReferenceText', c.fg, c.grey_bright, '', '') + hi('LspReferenceRead', c.fg, c.grey_bright, '', '') + hi('LspReferenceWrite', c.fg, c.grey_bright, '', '') end -- Specify groups for plugins