We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent daed6db commit 0bef68aCopy full SHA for 0bef68a
lua/null-ls/helpers.lua
@@ -1,6 +1,5 @@
1
local u = require("null-ls.utils")
2
local loop = require("null-ls.loop")
3
-local methods = require("null-ls.methods")
4
5
local validate = vim.validate
6
@@ -17,6 +16,7 @@ end
17
16
local json_output_wrapper = function(params, done, on_output)
18
local ok, decoded = pcall(vim.fn.json_decode, params.output)
19
if not ok then error("failed to decode json: " .. decoded) end
+ if decoded == vim.NIL then decoded = nil end
20
21
params.output = decoded
22
done(on_output(params))
0 commit comments