Skip to content

Commit db76c64

Browse files
committed
ref(nvim): echo instead of log for success
1 parent 3835680 commit db76c64

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/util/watch.rs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,13 @@ pub fn handler(
142142
match state.lock().await.workspaces.get_mut(&root) {
143143
Some(ws) => {
144144
for (_, nvim) in ws.clients.iter() {
145-
if let Err(e) = nvim.log_info("CompileCommands", "Regenerating ..").await {
145+
if let Err(e) = nvim
146+
.exec(
147+
"echo 'xcodebase: ⚙ Regenerating compilation database ..'".into(),
148+
false,
149+
)
150+
.await
151+
{
146152
tracing::error!("Fail to echo message to nvim clients {e}")
147153
}
148154
}
@@ -159,7 +165,10 @@ pub fn handler(
159165
tracing::info!("Regenerated compile commands");
160166
for (_, nvim) in ws.clients.iter() {
161167
if let Err(e) = nvim
162-
.log_info("CompileCommands", "Regenerated successfully")
168+
.exec(
169+
"echo 'xcodebase: ✅ Compilation database regenerated.'".into(),
170+
false,
171+
)
163172
.await
164173
{
165174
tracing::error!("Fail to echo message to nvim clients {e}")

0 commit comments

Comments
 (0)