cleanup
This commit is contained in:
parent
6e3e04a23d
commit
5941928739
|
@ -47,6 +47,9 @@ function M.start_clangd(dir)
|
||||||
root_dir = lspconfig.util.root_pattern '.git',
|
root_dir = lspconfig.util.root_pattern '.git',
|
||||||
capabilities = require('blink.cmp').get_lsp_capabilities(),
|
capabilities = require('blink.cmp').get_lsp_capabilities(),
|
||||||
single_file_support = true,
|
single_file_support = true,
|
||||||
|
on_attach = function(client, bufnr)
|
||||||
|
vim.notify('[clangd] Attached to buffer ' .. bufnr)
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -84,7 +87,7 @@ function M.watch_compile_commands(dir)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if fname and fname:match '.*/compile_commands%.json$' and status.change then
|
if fname and fname:match '[/\\]compile_commands%.json$' and status.change then
|
||||||
if debounce_timer then
|
if debounce_timer then
|
||||||
debounce_timer:stop()
|
debounce_timer:stop()
|
||||||
debounce_timer:close()
|
debounce_timer:close()
|
||||||
|
|
Loading…
Reference in New Issue