We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent befc846 commit d3aceccCopy full SHA for d3acecc
1 file changed
lua/rescript-tools/init.lua
@@ -36,7 +36,7 @@ end
36
---@return table|nil
37
local get_client = function()
38
local active_client = vim.lsp.get_active_clients({ name = "rescriptls" })
39
- return #active_client > 0 and active_client[1] or nil
+ return not vim.tbl_isempty(active_client) and active_client[1] or nil
40
end
41
42
---Open file
0 commit comments