1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-14 07:09:11 +08:00

Move emmet to html layer

This commit is contained in:
wsdjeg 2018-01-19 20:49:01 +08:00
parent 6ecbc16067
commit 115709b05a
3 changed files with 26 additions and 16 deletions

View File

@ -15,7 +15,6 @@ function! SpaceVim#layers#edit#plugins() abort
\ ['kana/vim-textobj-line'], \ ['kana/vim-textobj-line'],
\ ['kana/vim-textobj-entire'], \ ['kana/vim-textobj-entire'],
\ ['scrooloose/nerdcommenter', { 'loadconf' : 1}], \ ['scrooloose/nerdcommenter', { 'loadconf' : 1}],
\ ['mattn/emmet-vim', { 'on_cmd' : 'EmmetInstall'}],
\ ['gcmt/wildfire.vim',{'on_map' : '<Plug>(wildfire-'}], \ ['gcmt/wildfire.vim',{'on_map' : '<Plug>(wildfire-'}],
\ ['easymotion/vim-easymotion'], \ ['easymotion/vim-easymotion'],
\ ['haya14busa/vim-easyoperator-line'], \ ['haya14busa/vim-easyoperator-line'],
@ -35,7 +34,6 @@ function! SpaceVim#layers#edit#config() abort
let g:multi_cursor_skip_key=get(g:, 'multi_cursor_skip_key', '<C-x>') let g:multi_cursor_skip_key=get(g:, 'multi_cursor_skip_key', '<C-x>')
let g:multi_cursor_quit_key=get(g:, 'multi_cursor_quit_key', '<Esc>') let g:multi_cursor_quit_key=get(g:, 'multi_cursor_quit_key', '<Esc>')
let g:user_emmet_install_global = 0 let g:user_emmet_install_global = 0
let g:user_emmet_leader_key=get(g:, 'user_emmet_leader_key', '<C-e>')
let g:user_emmet_mode='a' let g:user_emmet_mode='a'
let g:user_emmet_settings = { let g:user_emmet_settings = {
\ 'javascript': { \ 'javascript': {

View File

@ -1,11 +1,16 @@
function! SpaceVim#layers#lang#html#plugins() abort function! SpaceVim#layers#lang#html#plugins() abort
let plugins = [ let plugins = [
\ ['groenewege/vim-less', { 'on_ft' : ['less']}], \ ['groenewege/vim-less', { 'on_ft' : ['less']}],
\ ['cakebaker/scss-syntax.vim', { 'on_ft' : ['scss','sass']}], \ ['cakebaker/scss-syntax.vim', { 'on_ft' : ['scss','sass']}],
\ ['hail2u/vim-css3-syntax', { 'on_ft' : ['css','scss','sass']}], \ ['hail2u/vim-css3-syntax', { 'on_ft' : ['css','scss','sass']}],
\ ['ap/vim-css-color', { 'on_ft' : ['css','scss','sass','less','styl']}], \ ['ap/vim-css-color', { 'on_ft' : ['css','scss','sass','less','styl']}],
\ ['othree/html5.vim', { 'on_ft' : ['html']}], \ ['othree/html5.vim', { 'on_ft' : ['html']}],
\ ['wavded/vim-stylus', { 'on_ft' : ['stylus']}], \ ['wavded/vim-stylus', { 'on_ft' : ['stylus']}],
\ ] \ ['mattn/emmet-vim', { 'on_cmd' : 'EmmetInstall'}],
return plugins \ ]
return plugins
endfunction
function! SpaceVim#layers#lang#html#config() abort
let g:user_emmet_leader_key=get(g:, 'user_emmet_leader_key', '<C-e>')
endfunction endfunction

View File

@ -1,6 +1,6 @@
--- ---
title: "SpaceVim lang#html layer" title: "SpaceVim lang#html layer"
description: "This layer is for html development" description: "Edit html in SpaceVim, with this layer, this layer provides code completion, syntax checking and code formatting for html."
--- ---
# [SpaceVim Layers:](https://spacevim.org/layers) lang#html # [SpaceVim Layers:](https://spacevim.org/layers) lang#html
@ -11,12 +11,13 @@ description: "This layer is for html development"
- [Layer Installation](#layer-installation) - [Layer Installation](#layer-installation)
- [Language server](#language-server) - [Language server](#language-server)
- [Features](#features) - [Features](#features)
- [Key bindings](#key-bindings)
<!-- vim-markdown-toc --> <!-- vim-markdown-toc -->
## Description ## Description
This layer is for html development. This layer adds support for editing HTML and CSS.
## Layer Installation ## Layer Installation
@ -32,8 +33,14 @@ npm install --global vscode-html-languageserver-bin
## Features ## Features
- Generate HTML and CSS coding using [neosnippet](https://github.com/Shougo/neosnippet.vim/) and [emmet-vim](https://github.com/mattn/emmet-vim)
- Tags navigation on key % using matchit.vim
- auto-completion - auto-completion
- syntax checking - syntax checking
- goto definition - language server protocol (need `lsp` layer)
- refernce finder
- language server protocol (need lsp layer) ## Key bindings
| key bindings | Description |
| ------------ | ------------ |
| `<C-e>` | emmet prefix |