aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRiley Bruins <ribru17@hotmail.com>2024-11-17 12:31:32 -0800
committerGitHub <noreply@github.com>2024-11-17 12:31:32 -0800
commit44229bb85b6cff00193164967126d85a7a785a7b (patch)
tree04a8b7cef4bbed61e43b6284c34bff9ed901cc00 /src
parent235cb5bc5f2553f5a46807267b8705e53f7a14af (diff)
downloadrneovim-44229bb85b6cff00193164967126d85a7a785a7b.tar.gz
rneovim-44229bb85b6cff00193164967126d85a7a785a7b.tar.bz2
rneovim-44229bb85b6cff00193164967126d85a7a785a7b.zip
feat(lsp): highlight hover target/range #31110
**Problem:** Despite the LSP providing the option for language servers to specify a range with a hover response (for highlighting), Neovim does not give the option to highlight this range. **Solution:** Add an option to `buf.hover()` which causes this range to be highlighted. Co-authored-by: Mathias Fußenegger <mfussenegger@users.noreply.github.com>
Diffstat (limited to 'src')
-rw-r--r--src/nvim/highlight_group.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/highlight_group.c b/src/nvim/highlight_group.c
index 65641f120f..b3c4aca1af 100644
--- a/src/nvim/highlight_group.c
+++ b/src/nvim/highlight_group.c
@@ -215,6 +215,7 @@ static const char *highlight_init_both[] = {
"default link LspReferenceRead LspReferenceText",
"default link LspReferenceText Visual",
"default link LspReferenceWrite LspReferenceText",
+ "default link LspReferenceTarget LspReferenceText",
"default link LspSignatureActiveParameter Visual",
"default link SnippetTabstop Visual",