From c583e1a69d3685983da48fa085e52b2e549053b8 Mon Sep 17 00:00:00 2001 From: ray-x Date: Mon, 26 Sep 2022 17:35:04 +1000 Subject: [PATCH] suppress error messages --- lua/navigator/dochighlight.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/navigator/dochighlight.lua b/lua/navigator/dochighlight.lua index 448173b..8cb1e80 100644 --- a/lua/navigator/dochighlight.lua +++ b/lua/navigator/dochighlight.lua @@ -259,7 +259,8 @@ local function documentHighlight(bufnr) vim.lsp.handlers['textDocument/documentHighlight'] = function(err, result, ctx) local buffer = ctx.bufnr or api.nvim_get_current_buf() 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 end if not result or not result[1] or not result[1]['range'] then