Skip to content

Commit 18272ab

Browse files
ro0grRuslan Hrabovyistevearc
authored
fix: notify when changing the current directory (#406)
* feat: notify when changing the current directory * Update actions.lua --------- Co-authored-by: Ruslan Hrabovyi <[email protected]> Co-authored-by: Steven Arcangeli <[email protected]>
1 parent e5312c3 commit 18272ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/oil/actions.lua

+1
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ local function cd(cmd)
102102
local dir = oil.get_current_dir()
103103
if dir then
104104
vim.cmd({ cmd = cmd, args = { dir } })
105+
vim.notify(string.format("CWD: %s", dir), vim.log.levels.INFO)
105106
else
106107
vim.notify("Cannot :cd; not in a directory", vim.log.levels.WARN)
107108
end

0 commit comments

Comments
 (0)