|
@@ -11,3 +11,16 @@ index a2e01ec..3855580 100644
|
|
____exports.setupLsp = function(overrides)
|
|
____exports.setupLsp = function(overrides)
|
|
local resolvedConfig = __TS__ObjectAssign({}, config, overrides or ({}))
|
|
local resolvedConfig = __TS__ObjectAssign({}, config, overrides or ({}))
|
|
local ____resolvedConfig_server_0 = resolvedConfig.server
|
|
local ____resolvedConfig_server_0 = resolvedConfig.server
|
|
|
|
+diff --git a/lua/typescript/utils.lua b/lua/typescript/utils.lua
|
|
|
|
+index 4a166bb..252fe8a 100644
|
|
|
|
+--- a/lua/typescript/utils.lua
|
|
|
|
++++ b/lua/typescript/utils.lua
|
|
|
|
+@@ -10,7 +10,7 @@ ____exports.debugLog = function(...)
|
|
|
|
+ end
|
|
|
|
+ ____exports.getClient = function(bufnr)
|
|
|
|
+ for ____, client in pairs(vim.lsp.get_active_clients({bufnr = bufnr})) do
|
|
|
|
+- if client.name == "tsserver" then
|
|
|
|
++ if client.name == "ts_ls" then
|
|
|
|
+ return client
|
|
|
|
+ end
|
|
|
|
+ end
|