debugging watcher

This commit is contained in:
dlond 2025-05-30 05:14:08 +12:00
parent 2232bed0b0
commit 01eb5e1bcc
1 changed files with 3 additions and 3 deletions

View File

@ -95,9 +95,9 @@ function M.watch_compile_commands(dir)
end
watcher:start(watch_path, { recursive = true }, function(err, fname, status)
vim.schedule(function()
print('[clangd] Watcher triggered: ', fname, vim.inspect(status))
end)
-- vim.schedule(function()
-- print('[clangd] Watcher triggered: ', fname, vim.inspect(status))
-- end)
if err then
vim.schedule(function()
vim.notify('[clangd] Watcher error: ' .. err, vim.log.levels.ERROR)