From 52326a6444eccccc826f1c03970387d6459c2ba2 Mon Sep 17 00:00:00 2001 From: bhagwan Date: Thu, 16 Jun 2022 07:00:30 -0700 Subject: [PATCH] fix(tags): error E5560 when tags are under $HOME (#452) --- lua/fzf-lua/path.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/fzf-lua/path.lua b/lua/fzf-lua/path.lua index 9a01596..6c8bf39 100644 --- a/lua/fzf-lua/path.lua +++ b/lua/fzf-lua/path.lua @@ -131,7 +131,10 @@ end -- at the same time due to being run in a coroutine (#447) M.HOME = function() if not M.__HOME then - M.__HOME = vim.env.HOME + -- use 'os.getenv' instead of 'vim.env' due to (#452): + -- E5560: nvim_exec must not be called in a lua loop callback + -- M.__HOME = vim.env.HOME + M.__HOME = os.getenv("HOME") end return M.__HOME end