nvim --version: v0.5.0-743-gce5a260c9:checkhealth result: - INFO: gopls: configuration checked.
- INFO: tsserver: configuration checked.
.go/.ts in my case).:lua vim.lsp.buf.document_highlight().No symbols are highlighted.
The symbol under the cursor is highlighted, along with any other occurrence in the same buffer.
Inspecting the logs, both of the LSPs above are returning payloads with the correct range info. Other LSP functions seem to work as expected.
This was just a highlighting issue :P I needed to define the corresponding syntax groups, e.g.:
hi LspReferenceText cterm=bold gui=bold
hi LspReferenceRead cterm=bold gui=bold
hi LspReferenceWrite cterm=bold gui=bold
Most helpful comment
This was just a highlighting issue :P I needed to define the corresponding syntax groups, e.g.: