Explorar el Código

Merge remote-tracking branch 'origin/rolling' into release-candidate

kylo252 hace 3 años
padre
commit
a29e098598
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      lua/lvim/lsp/utils.lua

+ 3 - 1
lua/lvim/lsp/utils.lua

@@ -31,8 +31,10 @@ function M.get_client_capabilities(client_id)
         break
       end
     end
+  else
+    client = vim.lsp.get_client_by_id(tonumber(client_id))
   end
-  if not client_id then
+  if not client then
     error "Unable to determine client_id"
     return
   end