[SOLVED] Changing Lazygit doesn't update Neo-tree #1490
Answered
by
jasper-clarke
jasper-clarke
asked this question in
Q&A
-
I wanted to post this here as I just found a solution and I'm sure others are experiencing this problem. |
Beta Was this translation helpful? Give feedback.
Answered by
jasper-clarke
Jun 1, 2024
Replies: 1 comment
-
Use this below autocommand. vim.api.nvim_create_autocmd({ "BufLeave" }, {
pattern = { "*lazygit*" },
group = vim.api.nvim_create_augroup("git_refresh_neotree", {clear = true}),
callback = function()
require("neo-tree.sources.filesystem.commands").refresh(
require("neo-tree.sources.manager").get_state("filesystem")
)
end,
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jasper-clarke
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use this below autocommand.