From 8931c15a604770c0221dba71e319c4eb11020002 Mon Sep 17 00:00:00 2001 From: Jieru Mei Date: Tue, 27 Sep 2022 12:11:56 -0700 Subject: [PATCH] fix: checktime when git checkout (#2176) (cherry picked from commit a7ede53f06e657d7f682284730b95c3af6dfc345) --- lua/telescope/actions/init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/telescope/actions/init.lua b/lua/telescope/actions/init.lua index 1f047e2..432dd77 100644 --- a/lua/telescope/actions/init.lua +++ b/lua/telescope/actions/init.lua @@ -560,6 +560,7 @@ actions.git_checkout = function(prompt_bufnr) msg = string.format("Checked out: %s", selection.value), level = "INFO", }) + vim.cmd "checktime" else utils.notify("actions.git_checkout", { msg = string.format( @@ -749,6 +750,7 @@ actions.git_checkout_current_buffer = function(prompt_bufnr) end actions.close(prompt_bufnr) utils.get_os_command_output({ "git", "checkout", selection.value, "--", selection.file }, cwd) + vim.cmd "checktime" end --- Stage/unstage selected file