Skip to content

Does anybody know how to setup Emmet support? #2599

Answered by CesarVMB
CesarVMB asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks @siduck for the new clue. No emmet-ls required.

From emmet-language-server:

Install emmet-language-server:

:MasonInstall emmet-language-server

Setup server: file ~/.config/nvim/lua/custom/configs/lspconfig.lua

lspconfig.emmet_language_server.setup({
  filetypes = {
    "astro",
    "css",
    "eruby",
    "html",
    "javascript",
    "javascriptreact",
    "less",
    "php",
    "pug",
    "sass",
    "scss",
    "typescriptreact"
  },
  -- Read more about this options in the [vscode docs](https://code.visualstudio.com/docs/editor/emmet#_emmet-configuration).
  -- **Note:** only the options listed in the table are supported.
  init_options = {
    --- @type string[]
    excludeLan…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@CesarVMB
Comment options

@CesarVMB
Comment options

@siduck
Comment options

@CesarVMB
Comment options

Answer selected by CesarVMB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants