Update lazy_load.lua

just check dir ,not check every file
This commit is contained in:
tomaswyz 2022-06-15 22:26:10 +08:00 committed by siduck
parent 771046a738
commit 1383117bd3

View File

@ -85,7 +85,7 @@ end
M.gitsigns = function() M.gitsigns = function()
-- taken from https://github.com/max397574 -- taken from https://github.com/max397574
vim.api.nvim_create_autocmd({ "BufAdd", "VimEnter" }, { vim.api.nvim_create_autocmd({ "BufRead" }, {
callback = function() callback = function()
local function onexit(code, _) local function onexit(code, _)
if code == 0 then if code == 0 then
@ -100,7 +100,7 @@ M.gitsigns = function()
args = { args = {
"ls-files", "ls-files",
"--error-unmatch", "--error-unmatch",
vim.fn.expand "%", vim.fn.expand "%:p:h",
}, },
}, onexit) }, onexit)
end end