From 61240ac75a93b3cdafb4325ab4e9d407f83965f4 Mon Sep 17 00:00:00 2001 From: Simon Hauser Date: Fri, 10 Dec 2021 16:32:28 +0100 Subject: 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. --- lua/tests/automated/pickers/find_files_spec.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lua/tests') diff --git a/lua/tests/automated/pickers/find_files_spec.lua b/lua/tests/automated/pickers/find_files_spec.lua index b4001cc..e9094cb 100644 --- a/lua/tests/automated/pickers/find_files_spec.lua +++ b/lua/tests/automated/pickers/find_files_spec.lua @@ -42,9 +42,9 @@ describe("builtin.find_files", function() width = 0.9, }, border = false, - }, vim.fn.json_decode([==[%s]==]))) + }, vim.json.decode([==[%s]==]))) ]], - vim.fn.json_encode(configuration) + vim.json.encode(configuration) )) end) @@ -73,10 +73,10 @@ describe("builtin.find_files", function() width = 0.9, }, border = false, - }, vim.fn.json_decode([==[%s]==]))) + }, vim.json.decode([==[%s]==]))) ]], expected, - vim.fn.json_encode(configuration) + vim.json.encode(configuration) )) end) @@ -99,9 +99,9 @@ describe("builtin.find_files", function() }, vim.tbl_extend("force", { disable_devicons = false, sorter = require('telescope.sorters').get_fzy_sorter(), - }, vim.fn.json_decode([==[%s]==]))) + }, vim.json.decode([==[%s]==]))) ]], - vim.fn.json_encode(configuration) + vim.json.encode(configuration) )) end) end -- cgit v1.2.3