break: bump the minimum required neovim version to 0.6 or higher (#1549)

So we can use `vim.json` and `vim.diagnostics`.

If you aren't able to update to 0.6.* yet you should pin the previous commit.
This commit is contained in:
Simon Hauser
2021-12-10 16:32:28 +01:00
committed by GitHub
parent 80cdb00b22
commit 61240ac75a
9 changed files with 29 additions and 24 deletions

View File

@@ -21,7 +21,7 @@ end
local writer = function(val)
if type(val) == "table" then
val = vim.fn.json_encode(val) .. "\n"
val = vim.json.encode(val) .. "\n"
end
if tester.debug then
@@ -157,7 +157,7 @@ local get_results_from_file = function(file)
local results = j:stderr_result()
local result_table = {}
for _, v in ipairs(results) do
table.insert(result_table, vim.fn.json_decode(v))
table.insert(result_table, vim.json.decode(v))
end
return result_table