| 12345678910111213141516171819202122232425262728 | local M = {}function M.is_client_active(name)  local clients = vim.lsp.get_active_clients()  for _, client in pairs(clients) do    if client.name == name then      return true, client    end  end  return falseend-- FIXME: this should return a list insteadfunction M.get_active_client_by_ft(filetype)  if not lvim.lang[filetype] or not lvim.lang[filetype].lsp then    return nil  end  local clients = vim.lsp.get_active_clients()  for _, client in pairs(clients) do    if client.name == lvim.lang[filetype].lsp.provider then      return client    end  end  return nilendreturn M
 |