diff --git a/lua/core/lazy_load.lua b/lua/core/lazy_load.lua index 30f3578..d86c8b4 100644 --- a/lua/core/lazy_load.lua +++ b/lua/core/lazy_load.lua @@ -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