0.4.2 • Published 1 year ago

emmet-ls v0.4.2

Weekly downloads
8
License
MIT
Repository
github
Last release
1 year ago

emmet-ls

Emmet support based on LSP.
Started as coc-emmet replacement for completion-nvim. Should work with any lsp client but not tested.

alt

Install

npm install -g emmet-ls

Configuration

Example Configuration

With nvim-lspconfig:

local lspconfig = require('lspconfig')
local configs = require('lspconfig/configs')
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities.textDocument.completion.completionItem.snippetSupport = true

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
          ["bem.enabled"] = true,
        },
      },
    }
})
Supported Filetypes
  • html, pug, typescriptreact, javascript, javascriptreact, svelte, vue, css, sass, scss and less filetypes are fully supported.
  • Any other filetype is treated as html.
0.4.1

1 year ago

0.4.2

1 year ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.4

2 years ago

0.2.2

2 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago