fix(lsp): lint warnings, default offset_encoding #24046

- fix lint / analysis warnings
- locations_to_items(): get default offset_encoding from active client
- character_offset(): get default offset_encoding from active client
This commit is contained in:
Raphael
2023-07-01 18:42:37 +08:00
committed by GitHub
parent 11844dde81
commit ba8f19ebb6
7 changed files with 130 additions and 113 deletions

View File

@@ -581,9 +581,9 @@ function M.document_highlight()
end
--- Removes document highlights from current buffer.
---
function M.clear_references()
util.buf_clear_references()
--- @param bufnr integer|nil
function M.clear_references(bufnr)
util.buf_clear_references(bufnr or 0)
end
---@private