From fde2a9f8fdd850555acf85ac07e52a80c98141cc Mon Sep 17 00:00:00 2001 From: William Hsieh Date: Tue, 12 Nov 2024 15:29:55 +0800 Subject: [PATCH] fix(cwd): update on `LspAttach` (not sure why this is not triggered) --- config/nvim/lua/plugins/tpipeline.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/nvim/lua/plugins/tpipeline.lua b/config/nvim/lua/plugins/tpipeline.lua index b970a60..182422c 100644 --- a/config/nvim/lua/plugins/tpipeline.lua +++ b/config/nvim/lua/plugins/tpipeline.lua @@ -102,7 +102,7 @@ function M.config() }) -- rename tmux window with CWD - vim.api.nvim_create_autocmd("DirChanged", { + vim.api.nvim_create_autocmd({ "DirChanged", "LspAttach" }, { callback = set_tmux_window_name_to_cwd, group = augroup, })