From 18272aba9d00a3176a5443d50dbb4464acc167bd Mon Sep 17 00:00:00 2001 From: Ruslan Hrabovyi Date: Sun, 9 Jun 2024 06:35:32 +0300 Subject: [PATCH] fix: notify when changing the current directory (#406) * feat: notify when changing the current directory * Update actions.lua --------- Co-authored-by: Ruslan Hrabovyi Co-authored-by: Steven Arcangeli <506791+stevearc@users.noreply.github.com> --- lua/oil/actions.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/oil/actions.lua b/lua/oil/actions.lua index 887f7933..1bb885ee 100644 --- a/lua/oil/actions.lua +++ b/lua/oil/actions.lua @@ -102,6 +102,7 @@ local function cd(cmd) local dir = oil.get_current_dir() if dir then vim.cmd({ cmd = cmd, args = { dir } }) + vim.notify(string.format("CWD: %s", dir), vim.log.levels.INFO) else vim.notify("Cannot :cd; not in a directory", vim.log.levels.WARN) end