Parcourir la source

nixpkgs/neovim: fix typescript.nvim patch

Thomas Dy il y a 1 mois
Parent
commit
0fc231959b
1 fichiers modifiés avec 13 ajouts et 0 suppressions
  1. 13 0
      .config/nixpkgs/neovim/plugins/typescript-nvim-tsserver.patch

+ 13 - 0
.config/nixpkgs/neovim/plugins/typescript-nvim-tsserver.patch

@@ -11,3 +11,16 @@ index a2e01ec..3855580 100644
  ____exports.setupLsp = function(overrides)
      local resolvedConfig = __TS__ObjectAssign({}, config, overrides or ({}))
      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