mirror of
https://github.com/neovim/nvim-lspconfig.git
synced 2026-05-10 02:56:10 +02:00
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:
parent
99c75820f2
commit
8b5a45af96
@ -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 = [[
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user