return {
  "olimorris/emmet-ls",
  ft = {
    "html",
    "htm",
    "css",
    "scss",
    "sass",
    "less",
    "javascript",
    "javascriptreact",
    "typescript",
    "typescriptreact",
    "vue",
    "svelte",
    "php",
    "xml",
    "xsl",
  },
  config = function()
    -- Enable snippet support
    local capabilities = vim.lsp.protocol.make_client_capabilities()
    capabilities.textDocument.completion.completionItem.snippetSupport = true

    -- Set up emmet-ls using the new method
    vim.api.nvim_create_autocmd("FileType", {
      pattern = {
        "html",
        "htm",
        "css",
        "scss",
        "sass",
        "less",
        "javascript",
        "javascriptreact",
        "typescript",
        "typescriptreact",
        "vue",
        "svelte",
        "php",
        "xml",
        "xsl",
      },
      callback = function(args)
        vim.lsp.start({
          name = "emmet-ls",
          cmd = { "emmet-ls", "--stdio" },
          root_dir = vim.fs.dirname(vim.fs.find({ ".git" }, { upward = true })[1]),
          capabilities = capabilities,
          filetypes = {
            "html",
            "htm",
            "css",
            "scss",
            "sass",
            "less",
            "javascript",
            "javascriptreact",
            "typescript",
            "typescriptreact",
            "vue",
            "svelte",
            "php",
            "xml",
            "xsl",
          },
        })
      end,
    })
  end,
}
