diff options
| author | Abouzar Parvan <[email protected]> | 2021-10-02 18:04:38 +0330 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2021-10-02 18:04:38 +0330 | 
| commit | 1e0d0181d55abe1e4248b3aeaded94cbf3308168 (patch) | |
| tree | 951ee845f7a9ffe97850e17652d2a473ddf24731 /lua | |
| parent | 8e3cfb77e6b2e02100b937a590dc8d55c0255ecf (diff) | |
feat: make lsp highlight color configurable (#1659)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lsp/init.lua | 3 | ||||
| -rw-r--r-- | lua/onedarker/LSP.lua | 3 | ||||
| -rw-r--r-- | lua/onedarker/palette.lua | 1 | 
3 files changed, 4 insertions, 3 deletions
diff --git a/lua/lsp/init.lua b/lua/lsp/init.lua index 3c921e65..386be075 100644 --- a/lua/lsp/init.lua +++ b/lua/lsp/init.lua @@ -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() diff --git a/lua/onedarker/LSP.lua b/lua/onedarker/LSP.lua index 0ed133fe..82b9f799 100644 --- a/lua/onedarker/LSP.lua +++ b/lua/onedarker/LSP.lua @@ -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 }, diff --git a/lua/onedarker/palette.lua b/lua/onedarker/palette.lua index ab15d392..81ea3af3 100644 --- a/lua/onedarker/palette.lua +++ b/lua/onedarker/palette.lua @@ -6,6 +6,7 @@ local colors = {    dark = "#282c34",    accent = "#BBBBBB",    dark_gray = "#2a2f3e", +  fg_gutter = "#353d46",    context = "#4b5263",    popup_back = "#282c34",    search_orange = "#613214",  | 
