From 402cbe4c1738fa232d706d724c1538e609662747 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Joly?= Date: Thu, 2 Jun 2022 18:33:45 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20prepare=20for=20nvim=200.8=E2=80=99s=20h?= =?UTF-8?q?ealth=20module?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `require("health")` becomes `vim.health`. See the announcement https://github.com/neovim/neovim/issues/14090#issuecomment-1142461030 --- lua/telescope/_extensions/repo/health.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/telescope/_extensions/repo/health.lua b/lua/telescope/_extensions/repo/health.lua index a22c8f2..578163f 100644 --- a/lua/telescope/_extensions/repo/health.lua +++ b/lua/telescope/_extensions/repo/health.lua @@ -4,7 +4,8 @@ local utils = require("telescope._extensions.repo.utils") local list = require("telescope._extensions.repo.list") local cached_list = require("telescope._extensions.repo.cached_list") -local health = require("health") +-- TODO Keep only vim.health once nvim 0.8 is required +local health = vim.health or require("health") local Job = require("plenary.job") local max_repo = 2 -- 2.45.2