Update lazy_load.lua
just check dir ,not check every file
This commit is contained in:
parent
771046a738
commit
1383117bd3
|
@ -85,7 +85,7 @@ end
|
|||
|
||||
M.gitsigns = function()
|
||||
-- taken from https://github.com/max397574
|
||||
vim.api.nvim_create_autocmd({ "BufAdd", "VimEnter" }, {
|
||||
vim.api.nvim_create_autocmd({ "BufRead" }, {
|
||||
callback = function()
|
||||
local function onexit(code, _)
|
||||
if code == 0 then
|
||||
|
@ -100,7 +100,7 @@ M.gitsigns = function()
|
|||
args = {
|
||||
"ls-files",
|
||||
"--error-unmatch",
|
||||
vim.fn.expand "%",
|
||||
vim.fn.expand "%:p:h",
|
||||
},
|
||||
}, onexit)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue