summaryrefslogtreecommitdiff
path: root/lua/telescope/builtin/internal.lua
diff options
context:
space:
mode:
authorSimon Hauser <Simon-Hauser@outlook.de>2021-12-10 16:32:28 +0100
committerGitHub <noreply@github.com>2021-12-10 16:32:28 +0100
commit61240ac75a93b3cdafb4325ab4e9d407f83965f4 (patch)
tree76423432dc848be4e1c7a86ab37abb335c467794 /lua/telescope/builtin/internal.lua
parent80cdb00b221f69348afc4fb4b701f51eb8dd3120 (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/builtin/internal.lua')
-rw-r--r--lua/telescope/builtin/internal.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/telescope/builtin/internal.lua b/lua/telescope/builtin/internal.lua
index fa655f0..a868bc6 100644
--- a/lua/telescope/builtin/internal.lua
+++ b/lua/telescope/builtin/internal.lua
@@ -245,7 +245,7 @@ internal.symbols = function(opts)
local results = {}
for _, source in ipairs(sources) do
- local data = vim.fn.json_decode(Path:new(source):read())
+ local data = vim.json.decode(Path:new(source):read())
for _, entry in ipairs(data) do
table.insert(results, entry)
end