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:
parent
e5312c3a80
commit
18272aba9d
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue