feat: make lsp highlight color configurable (#1659)

This commit is contained in:
Abouzar Parvan 2021-10-02 18:04:38 +03:30 committed by GitHub
parent 8e3cfb77e6
commit 1e0d0181d5
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View file

@ -9,9 +9,6 @@ local function lsp_highlight_document(client)
if client.resolved_capabilities.document_highlight then
vim.api.nvim_exec(
[[
hi LspReferenceRead cterm=bold ctermbg=red guibg=#353d46
hi LspReferenceText cterm=bold ctermbg=red guibg=#353d46
hi LspReferenceWrite cterm=bold ctermbg=red guibg=#353d46
augroup lsp_document_highlight
autocmd! * <buffer>
autocmd CursorHold <buffer> lua vim.lsp.buf.document_highlight()

View file

@ -35,6 +35,9 @@ local LSP = {
DiagnosticUnderlineWarn = { style = "underline" },
DiagnosticUnderlineInfo = { style = "underline" },
DiagnosticUnderlineHint = { style = "underline" },
LspReferenceRead = { bg = C.fg_gutter, style = "bold" },
LspReferenceText = { bg = C.fg_gutter, style = "bold" },
LspReferenceWrite = { bg = C.fg_gutter, style = "bold" },
QuickScopePrimary = { fg = C.purple_test, style = "underline" },
QuickScopeSecondary = { fg = C.cyan_test, style = "underline" },
TelescopeSelection = { fg = C.hint_blue },

View file

@ -6,6 +6,7 @@ local colors = {
dark = "#282c34",
accent = "#BBBBBB",
dark_gray = "#2a2f3e",
fg_gutter = "#353d46",
context = "#4b5263",
popup_back = "#282c34",
search_orange = "#613214",