mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-04-13 12:39:09 +08:00
Add html layer doc
This commit is contained in:
parent
685dc97eae
commit
6ecbc16067
@ -82,6 +82,7 @@ let s:lsp_servers = {
|
||||
\ 'go' : ['go-langserver', '-mode', 'stdio'],
|
||||
\ 'rust' : ['rustup', 'run', 'nightly', 'rls'],
|
||||
\ 'python' : ['pyls'],
|
||||
\ 'html' : ['html-languageserver', '--stdio'],
|
||||
\ 'php' : ['php', g:spacevim_plugin_bundle_dir . 'repos/github.com/felixfbecker/php-language-server/bin/php-language-server.php']
|
||||
\ }
|
||||
|
||||
|
39
docs/layers/lang/html.md
Normal file
39
docs/layers/lang/html.md
Normal file
@ -0,0 +1,39 @@
|
||||
---
|
||||
title: "SpaceVim lang#html layer"
|
||||
description: "This layer is for html development"
|
||||
---
|
||||
|
||||
# [SpaceVim Layers:](https://spacevim.org/layers) lang#html
|
||||
|
||||
<!-- vim-markdown-toc GFM -->
|
||||
|
||||
- [Description](#description)
|
||||
- [Layer Installation](#layer-installation)
|
||||
- [Language server](#language-server)
|
||||
- [Features](#features)
|
||||
|
||||
<!-- vim-markdown-toc -->
|
||||
|
||||
## Description
|
||||
|
||||
This layer is for html development.
|
||||
|
||||
## Layer Installation
|
||||
|
||||
To use this configuration layer, add `call SpaceVim#layers#load('lang#html')` to your custom configuration file.
|
||||
|
||||
### Language server
|
||||
|
||||
To install the language server, you need `npm` on your machine:
|
||||
|
||||
```bash
|
||||
npm install --global vscode-html-languageserver-bin
|
||||
```
|
||||
|
||||
## Features
|
||||
|
||||
- auto-completion
|
||||
- syntax checking
|
||||
- goto definition
|
||||
- refernce finder
|
||||
- language server protocol (need lsp layer)
|
@ -91,6 +91,7 @@ default language server commands:
|
||||
| `haskell` | `['hie', '--lsp']` |
|
||||
| `c` | `['clangd']` |
|
||||
| `cpp` | `['clangd']` |
|
||||
| `html` | `['html-languageserver', '--stdio']` |
|
||||
| `objc` | `['clangd']` |
|
||||
| `objcpp` | `['clangd']` |
|
||||
| `dart` | `['dart_language_server']` |
|
||||
|
Loading…
x
Reference in New Issue
Block a user