aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/provider/python.lua
diff options
context:
space:
mode:
authorglepnir <glephunter@gmail.com>2026-03-14 17:20:34 +0800
committerGitHub <noreply@github.com>2026-03-14 05:20:34 -0400
commit5653b25e9b8fa311db16dd306a9b849e5456c603 (patch)
treeca7c58475a21df7223eaa4c57a7212b015a8edb9 /runtime/lua/vim/provider/python.lua
parentb4e3461e3fdfaa7d330ebe546cb75620a23ab54c (diff)
downloadrneovim-5653b25e9b8fa311db16dd306a9b849e5456c603.tar.gz
rneovim-5653b25e9b8fa311db16dd306a9b849e5456c603.tar.bz2
rneovim-5653b25e9b8fa311db16dd306a9b849e5456c603.zip
fix(lsp): handle non-string documentation in completion items #38291
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.
Diffstat (limited to 'runtime/lua/vim/provider/python.lua')
0 files changed, 0 insertions, 0 deletions