mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 17:50:04 +08:00
943d34a1d2
* Add options for setting emmet filetype close https://github.com/SpaceVim/SpaceVim/issues/4247 * Update * Update
1.4 KiB
1.4 KiB
title | description |
---|---|
SpaceVim lang#html layer | Edit html in SpaceVim, with this layer, this layer provides code completion, syntax checking and code formatting for html. |
Available Layers >> lang#html
Description
This layer adds support for editing HTML and CSS.
Install
To use this configuration layer, update your custom configuration file with:
[[layers]]
name = "lang#html"
Language server
To install the language server, you need npm
on your machine:
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[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 Bindings | Descriptions |
---|---|
Ctrl-e |
emmet prefix |