mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-13 13:30:41 +00:00
remove gitsigns autocmd on gitsigns load
This commit is contained in:
parent
5db641289d
commit
f0c93c8472
1 changed files with 2 additions and 0 deletions
|
@ -78,9 +78,11 @@ M.mason_cmds = {
|
|||
|
||||
M.gitsigns = function()
|
||||
autocmd({ "BufRead" }, {
|
||||
group = vim.api.nvim_create_augroup("GitSignsLazyLoad", { clear = true }),
|
||||
callback = function()
|
||||
vim.fn.system("git rev-parse " .. vim.fn.expand "%:p:h")
|
||||
if vim.v.shell_error == 0 then
|
||||
vim.api.nvim_del_augroup_by_name "GitSignsLazyLoad"
|
||||
vim.schedule(function()
|
||||
require("packer").loader "gitsigns.nvim"
|
||||
end)
|
||||
|
|
Loading…
Reference in a new issue