0

lua/custom/configs/lspconfig.lua:

lspconfig.emmet_ls.setup {
  on_attach = on_attach,
  capabilities = capabilities,
  filetypes = {
    "css",
    "eruby",
    "html",
    "javascript",
    "javascriptreact",
    "less",
    "sass",
    "scss",
    "svelte",
    "pug",
    "typescriptreact",
    "vue",
  },
  init_options = {
    html = {
      options = {
        -- For possible options, see: https://github.com/emmetio/emmet/blob/master/src/config.ts#L79-L267
        ["output.selfClosingStyle"] = "xhtml",
      },
    },
  },
}

index.tsx:

input /// clicking enter in completion list -----> <input type="text">

i copied this configuration and i edited it according to the reference of emmet-ls in github.

can someone help me with this please.

i was expecting emmet-ls to give me <input type="text" /> instead of <input type="text"> i even tried to change the html word inside init_options to typescriptreact but still didn't work.

0MR4N
  • 91
  • 3

0 Answers0