debugging watcher
This commit is contained in:
parent
2232bed0b0
commit
01eb5e1bcc
|
@ -95,9 +95,9 @@ function M.watch_compile_commands(dir)
|
||||||
end
|
end
|
||||||
|
|
||||||
watcher:start(watch_path, { recursive = true }, function(err, fname, status)
|
watcher:start(watch_path, { recursive = true }, function(err, fname, status)
|
||||||
vim.schedule(function()
|
-- vim.schedule(function()
|
||||||
print('[clangd] Watcher triggered: ', fname, vim.inspect(status))
|
-- print('[clangd] Watcher triggered: ', fname, vim.inspect(status))
|
||||||
end)
|
-- end)
|
||||||
if err then
|
if err then
|
||||||
vim.schedule(function()
|
vim.schedule(function()
|
||||||
vim.notify('[clangd] Watcher error: ' .. err, vim.log.levels.ERROR)
|
vim.notify('[clangd] Watcher error: ' .. err, vim.log.levels.ERROR)
|
||||||
|
|
Loading…
Reference in New Issue