summaryrefslogtreecommitdiff
path: root/lua/telescope/builtin/lsp.lua
diff options
context:
space:
mode:
authorTJ DeVries <devries.timothyj@gmail.com>2021-03-03 11:51:44 -0500
committerGitHub <noreply@github.com>2021-03-03 17:51:44 +0100
commit0fef4c3e17f4f41c070e890dc7bee6f348983b5f (patch)
tree559ee751db0abacd9b37838bb51f5c864cb29dcf /lua/telescope/builtin/lsp.lua
parent20984fc5cdb69497b0c523236ee3f9160e22df30 (diff)
fix: remove gotos because this breaks lua 5.1 (#583)
Diffstat (limited to 'lua/telescope/builtin/lsp.lua')
-rw-r--r--lua/telescope/builtin/lsp.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/lua/telescope/builtin/lsp.lua b/lua/telescope/builtin/lsp.lua
index 28ecf60..49bc698 100644
--- a/lua/telescope/builtin/lsp.lua
+++ b/lua/telescope/builtin/lsp.lua
@@ -190,10 +190,9 @@ local function check_capabilities(feature)
local supported_client = false
for _, client in pairs(clients) do
supported_client = client.resolved_capabilities[feature]
- if supported_client then goto continue end
+ if supported_client then break end
end
- ::continue::
if supported_client then
return true
else