diff options
| author | Simon Hauser <Simon-Hauser@outlook.de> | 2021-12-10 16:32:28 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-10 16:32:28 +0100 |
| commit | 61240ac75a93b3cdafb4325ab4e9d407f83965f4 (patch) | |
| tree | 76423432dc848be4e1c7a86ab37abb335c467794 /lua/telescope/pickers | |
| parent | 80cdb00b221f69348afc4fb4b701f51eb8dd3120 (diff) | |
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.
Diffstat (limited to 'lua/telescope/pickers')
| -rw-r--r-- | lua/telescope/pickers/_test.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/telescope/pickers/_test.lua b/lua/telescope/pickers/_test.lua index 2124635..a8680d0 100644 --- a/lua/telescope/pickers/_test.lua +++ b/lua/telescope/pickers/_test.lua @@ -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 |
