fix(sourcekit): use textDocument/diagnostic over publishDiagnostics #3626

Problem:
nvim uses textDocument/publishDiagnostics over textDocument/diagnostic
which results in delayed diagnostics

Solution:
dyanmically register textDocument/diagnostic capability
This commit is contained in:
Muhammad Saheed 2025-02-27 03:15:01 +05:30 committed by GitHub
parent 99c75820f2
commit 8b5a45af96
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,6 +15,14 @@ return {
local t = { objc = 'objective-c', objcpp = 'objective-cpp' }
return t[ftype] or ftype
end,
capabilities = {
textDocument = {
diagnostic = {
dynamicRegistration = true,
relatedDocumentSupport = true,
},
},
},
},
docs = {
description = [[