|
|
@ -209,7 +209,7 @@ _G.nav_doc_hl = function()
|
|
|
|
local bufnr = vim.api.nvim_get_current_buf()
|
|
|
|
local bufnr = vim.api.nvim_get_current_buf()
|
|
|
|
local ref_params = vim.lsp.util.make_position_params()
|
|
|
|
local ref_params = vim.lsp.util.make_position_params()
|
|
|
|
vim.lsp.for_each_buffer_client(bufnr, function(client, client_id, bufnr)
|
|
|
|
vim.lsp.for_each_buffer_client(bufnr, function(client, client_id, bufnr)
|
|
|
|
if client.server_capabilities.documentHighlightProvider then
|
|
|
|
if client.server_capabilities.documentHighlightProvider == true then
|
|
|
|
client.request('textDocument/documentHighlight', ref_params, handle_document_highlight, bufnr)
|
|
|
|
client.request('textDocument/documentHighlight', ref_params, handle_document_highlight, bufnr)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end)
|
|
|
|
end)
|
|
|
|