workspace diagnostics: work with nested projects in repo

This commit is contained in:
Alexander Gehrke 2025-09-24 13:59:01 +02:00
parent 8981f39679
commit 0347d5d17e
3 changed files with 19 additions and 8 deletions

View file

@ -60,6 +60,8 @@ local on_attach = function(args)
vim.cmd([[autocmd CursorHoldI <buffer> lua vim.lsp.buf.document_highlight()]])
vim.cmd([[autocmd CursorMoved <buffer> lua vim.lsp.buf.clear_references()]])
end
require("workspace-diagnostics").populate_workspace_diagnostics(client, args.buf)
end
vim.api.nvim_create_autocmd("LspAttach", { callback = on_attach })