fix: notify when changing the current directory (#406)

* feat: notify when changing the current directory

* Update actions.lua

---------

Co-authored-by: Ruslan Hrabovyi <ruslan.hrabovyi@ligadigital.com>
Co-authored-by: Steven Arcangeli <506791+stevearc@users.noreply.github.com>
This commit is contained in:
Ruslan Hrabovyi 2024-06-09 06:35:32 +03:00 committed by GitHub
parent e5312c3a80
commit 18272aba9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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