8000 GitHub - DNLHC/emmet-ls: Emmet support based on LSP.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

DNLHC/emmet-ls

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 = { 'html', 'typescriptreact', 'javascriptreact', 'css', 'sass', 'scss', 'less' },
})
Supported Filetypes
  • html, typescriptreact, javascriptreact, css, sass, scss and less filetypes are fully supported.
  • Any other filetype is treated as html.

About

Emmet support based on LSP.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%
0