+
Skip to content

🌈 Plugin that creates missing LSP diagnostics highlight groups for color schemes that don't yet support the Neovim 0.5 builtin LSP client.

Notifications You must be signed in to change notification settings

cornet/lsp-colors.nvim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌈 LSP Colors

Automatically creates missing LSP diagnostics highlight groups for color schemes that don't yet support the Neovim 0.5 builtin lsp client.

Screenshot

✨ Features

  • supports the latest Neovim 0.5 and 0.6 (HEAD) LSP highlight groups
  • support any colorscheme like Nord and Gruvbox
  • existing highlight groups from themes will never be overwritten
  • tries to use coc.nvim groups if they are defined in the theme
  • if not, we fall back to a default set of colors

⚡️ Requirements

  • Neovim >= 0.5.0

📦 Installation

Install the theme with your preferred package manager:

vim-plug

Plug 'folke/lsp-colors.nvim'

packer

use 'folke/lsp-colors.nvim'

🚀 Usage

Nothing special. Just load a colorscheme as usual 🙂

⚙️ Configuration

LSP Colors works out of the box, but you can set the default colors that will be used in case a theme doesn't have LSP nor Coc highlight groups.

-- Lua
require("lsp-colors").setup({
  Error = "#db4b4b",
  Warning = "#e0af68",
  Information = "#0db9d7",
  Hint = "#10B981"
})

Making undercurls work properly in Tmux

To have undercurls show up and in color, add the following to your Tmux config file:

# Undercurl
set -g default-terminal "${TERM}"
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'  # undercurl support
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'  # underscore colours - needs tmux-3.0

About

🌈 Plugin that creates missing LSP diagnostics highlight groups for color schemes that don't yet support the Neovim 0.5 builtin LSP client.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 94.1%
  • Vim Script 5.9%
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载