lua: vim.rpcrequest, vim.rpcnotify, vim.NIL

This commit is contained in:
Björn Linse
2019-10-27 20:49:03 +01:00
parent 5689008060
commit 474d0bcbf7
7 changed files with 220 additions and 3 deletions

View File

@@ -289,7 +289,7 @@ function Inspector:putValue(v)
if tv == 'string' then
self:puts(smartQuote(escape(v)))
elseif tv == 'number' or tv == 'boolean' or tv == 'nil' or
tv == 'cdata' or tv == 'ctype' then
tv == 'cdata' or tv == 'ctype' or (vim and v == vim.NIL) then
self:puts(tostring(v))
elseif tv == 'table' then
self:putTable(v)