mirror of
https://github.com/neovim/neovim.git
synced 2026-07-18 23:21:35 +00:00
fix(lsp): util.lua attempt to concatenate userdata #39225
Problem:
Error when querying document symbols using python-lsp-server:
lsp/util.lua:1955: attempt to concatenate field 'containerName' (a userdata value)
Solution:
Check for `vim.NIL`.
This commit is contained in:
@@ -166,4 +166,11 @@ function M.get_forge_url(repo, target, target_type)
|
||||
return ('%s/%s/%s'):format(repo, middle, target)
|
||||
end
|
||||
|
||||
--- Check if value is `nil` or `vim.NIL`
|
||||
---
|
||||
--- @return boolean
|
||||
function M.isnil(value)
|
||||
return value == nil or value == vim.NIL
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
Reference in New Issue
Block a user