Skip to content

Commit

Permalink
fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-jpq committed Dec 29, 2023
1 parent 8ee3d72 commit 9fda84a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion coq/lsp/requests/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@
return function(client_name)
vim.validate {client_name = {client_name, "string"}}
local includes = acc[client_name]
return include_clients and includes or not includes
local yes = (function()
if include_clients then
return includes
else
return not includes
end
end)()
return yes
end
end
end
Expand Down

0 comments on commit 9fda84a

Please sign in to comment.