aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorMuhammad Saheed <89859744+MainKt@users.noreply.github.com>2025-02-27 03:15:01 +0530
committerGitHub <noreply@github.com>2025-02-26 13:45:01 -0800
commit8b5a45af96b70caa0191380f0068837b2bbbe2c8 (patch)
treeee7b1d35c562b18773dac0157005b6b866ef11b2 /lua
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-8b5a45af96b70caa0191380f0068837b2bbbe2c8.tar
nvim-lspconfig-8b5a45af96b70caa0191380f0068837b2bbbe2c8.tar.gz
nvim-lspconfig-8b5a45af96b70caa0191380f0068837b2bbbe2c8.tar.bz2
nvim-lspconfig-8b5a45af96b70caa0191380f0068837b2bbbe2c8.tar.lz
nvim-lspconfig-8b5a45af96b70caa0191380f0068837b2bbbe2c8.tar.xz
nvim-lspconfig-8b5a45af96b70caa0191380f0068837b2bbbe2c8.tar.zst
nvim-lspconfig-8b5a45af96b70caa0191380f0068837b2bbbe2c8.zip
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
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/configs/sourcekit.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/lua/lspconfig/configs/sourcekit.lua b/lua/lspconfig/configs/sourcekit.lua
index 99a61f61..9da1b3ed 100644
--- a/lua/lspconfig/configs/sourcekit.lua
+++ b/lua/lspconfig/configs/sourcekit.lua
@@ -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 = [[