mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-12 12:50:37 +00:00
Update lazy_load.lua
just check dir ,not check every file
This commit is contained in:
parent
771046a738
commit
1383117bd3
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue