add autocmd to reload buffers when neogit change something
This commit is contained in:
parent
2a5b5bb6ce
commit
649e32838d
1 changed files with 6 additions and 0 deletions
|
|
@ -382,6 +382,12 @@ local plugins = {
|
|||
}
|
||||
}
|
||||
})
|
||||
vim.api.nvim_create_autocmd("User", {
|
||||
pattern = "NeogitStatusRefreshed",
|
||||
callback = function()
|
||||
vim.cmd("set autoread | checktime")
|
||||
end
|
||||
})
|
||||
end
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue