Back to Spacevim

SpaceVim lang#html layer

docs/layers/lang/html.md

2.4.01.3 KB
Original Source

Available Layers >> lang#html

<!-- vim-markdown-toc GFM --> <!-- vim-markdown-toc -->

Description

This layer adds support for editing HTML and CSS.

Install

To use this configuration layer, update your custom configuration file with:

toml
[[layers]]
  name = "lang#html"

Language server

To install the language server, you need npm on your machine:

bash
npm install --global vscode-html-languageserver-bin

Layer options

  • emmet_leader_key: change the default leader key for emmet.

  • emmet_filetyps: Set the filetypes for enabling emmet

    toml
    [[layers]]
      name = "lang#html"
      emmet_leader_key = "<C-e>"
      emmet_filetyps = ['html']
    

Features

  • Generate HTML and CSS code using neosnippet and emmet-vim
  • Tags navigation on key % using vim-matchup
  • auto-completion
  • syntax checking
  • language server protocol (need lsp layer)

Key bindings

Key BindingsDescriptions
Ctrl-eemmet prefix