config: watch the directory containing the wezterm.lua too

refs: #1697
This commit is contained in:
Wez Furlong committed 2022-04-09 07:08:19 -07:00
1 parent 738e180295
commit 7977fe7ee1
1 file changed
+5
+5
View File
@@ -481,6 +481,11 @@ impl ConfigInner {
let mut watch_paths = vec![];
if let Some(path) = file_name {
// Let's also watch the parent directory for folks that do
// things with symlinks:
if let Some(parent) = path.parent() {
watch_paths.push(parent.to_path_buf());
}
watch_paths.push(path);
}