Problem: `get_doc` throws error with "attempt to get length of a userdata value" when `item.documentation` is truthy but not a string (e.g. vim.NIL from a JSON null). Solution: Check `type(item.documentation)` before taking its length.
textDocument/codeLens
vim.lsp.protocol.Methods
on_list
loclist
Capability