From d9ab03affcdd26e0b8547354c1c40393d9f2bab0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Ol=C3=B3rtegui?= <20072509+olrtg@users.noreply.github.com> Date: Fri, 7 Apr 2023 19:00:52 -0400 Subject: [PATCH 1/2] feat: add support for `javascript`, `pug`, `svelte` and `vue` files --- src/server.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/server.ts b/src/server.ts index 7e27a94..a5c485a 100644 --- a/src/server.ts +++ b/src/server.ts @@ -142,14 +142,18 @@ const markupIdentifierOverrides = { // Identifiers not in stylesheetIdentifiers are treated as markup. // Markup languages are treated as html syntax by default. // So html, blade, razor and the like don't need to be listed. + javascript: 'js', javascriptreact: 'jsx', + pug: 'pug', + svelte: 'svelte', typescriptreact: 'jsx', + vue: 'vue', } as { [key: string]: string | undefined }; const stylesheetIdentifiers = [ 'css', 'sass', 'scss', - 'less' + 'less', ]; connection.onCompletion( From 4cdeed4315f7477fb5ff808f42bb0c47e2efac28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Ol=C3=B3rtegui?= <20072509+olrtg@users.noreply.github.com> Date: Fri, 7 Apr 2023 19:11:39 -0400 Subject: [PATCH 2/2] chore: updated docs --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 044010c..76b71f7 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ capabilities.textDocument.completion.completionItem.snippetSupport = true lspconfig.emmet_ls.setup({ -- on_attach = on_attach, capabilities = capabilities, - filetypes = { 'html', 'typescriptreact', 'javascriptreact', 'css', 'sass', 'scss', 'less' }, + filetypes = { "css", "eruby", "html", "javascript", "javascriptreact", "less", "sass", "scss", "svelte", "pug", "typescriptreact", "vue" }, init_options = { html = { options = { @@ -40,5 +40,5 @@ lspconfig.emmet_ls.setup({ ##### Supported Filetypes -- `html`, `typescriptreact`, `javascriptreact`, `css`, `sass`, `scss` and `less` filetypes are fully supported. +- `html`, `pug`, `typescriptreact`, `javascript`, `javascriptreact`, `svelte`, `vue`, `css`, `sass`, `scss` and `less` filetypes are fully supported. - Any other filetype is treated as `html`.