refactor(lsp): tidy up logging

This commit is contained in:
Lewis Russell
2024-02-08 09:24:47 +00:00
committed by Lewis Russell
parent 2a7c4aca42
commit 1f9da3d083
8 changed files with 152 additions and 198 deletions

View File

@@ -22,9 +22,7 @@ local augroup = api.nvim_create_augroup('vim_lsp_inlayhint', {})
---@private
function M.on_inlayhint(err, result, ctx, _)
if err then
if log.error() then
log.error('inlayhint', err)
end
log.error('inlayhint', err)
return
end
local bufnr = assert(ctx.bufnr)