Skip to content

Commit 3e4e273

Browse files
Charles Moscofianarcticicestudiosvengreb
authored
Add support for LSP textDocument/documentHighlight (#284)
Support for Neovim LSP `documentHighlight` groups The Neovim LSP `textDocument` / `documentHightlight` groups [1] are responsible to highlight tokens in a document that are related to each other, e.g. decalred variables, using the `vim.buf.lsp.document_highlight()` function. Also see the LSP specification about "Document Highlights Request" [2] for more details. [1]: https://github.com/neovim/neovim/blob/f92a2457c2e7ad14d9a5a907ef4213fa770b6d95/runtime/doc/lsp.txt#L423 [2]: https://microsoft.github.io/language-server-protocol/specification#textDocument_documentHighlight Co-authored-by: Arctic Ice Studio <[email protected]> Co-authored-by: Sven Greb <[email protected]>
1 parent 8035ba0 commit 3e4e273

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

colors/nord.vim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,11 @@ call s:hi("DiagnosticUnderlineError" , s:nord11_gui, "", s:nord11_term, "", "und
226226
call s:hi("DiagnosticUnderlineInfo" , s:nord8_gui, "", s:nord8_term, "", "undercurl", "")
227227
call s:hi("DiagnosticUnderlineHint" , s:nord10_gui, "", s:nord10_term, "", "undercurl", "")
228228

229+
"+- Neovim DocumentHighlight -+
230+
call s:hi("LspReferenceText", "", s:nord3_gui, "", s:nord3_term, "", "")
231+
call s:hi("LspReferenceRead", "", s:nord3_gui, "", s:nord3_term, "", "")
232+
call s:hi("LspReferenceWrite", "", s:nord3_gui, "", s:nord3_term, "", "")
233+
229234
"+--- Gutter ---+
230235
call s:hi("CursorColumn", "", s:nord1_gui, "NONE", s:nord1_term, "", "")
231236
if g:nord_cursor_line_number_background == 0

0 commit comments

Comments
 (0)