mirror of
https://github.com/ray-x/navigator.lua
synced 2024-11-15 18:12:50 +00:00
suppress error messages
This commit is contained in:
parent
273f614212
commit
c583e1a69d
@ -259,7 +259,8 @@ local function documentHighlight(bufnr)
|
|||||||
vim.lsp.handlers['textDocument/documentHighlight'] = function(err, result, ctx)
|
vim.lsp.handlers['textDocument/documentHighlight'] = function(err, result, ctx)
|
||||||
local buffer = ctx.bufnr or api.nvim_get_current_buf()
|
local buffer = ctx.bufnr or api.nvim_get_current_buf()
|
||||||
if err then
|
if err then
|
||||||
vim.notify('failed to highlight symbol' .. vim.inspect(err), vim.lsp.log_levels.ERROR)
|
-- vim.notify('failed to highlight symbol' .. vim.inspect(err), vim.lsp.log_levels.ERROR, vim.lsp.log_levels.ERROR)
|
||||||
|
log('failed to highlight symbol', err)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if not result or not result[1] or not result[1]['range'] then
|
if not result or not result[1] or not result[1]['range'] then
|
||||||
|
Loading…
Reference in New Issue
Block a user