Skip to content

Commit

Permalink
fix: notify when changing the current directory (#406)
Browse files Browse the repository at this point in the history
* feat: notify when changing the current directory

* Update actions.lua

---------

Co-authored-by: Ruslan Hrabovyi <[email protected]>
Co-authored-by: Steven Arcangeli <[email protected]>
  • Loading branch information
3 people authored Jun 9, 2024
1 parent e5312c3 commit 18272ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/oil/actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 18272ab

Please sign in to comment.