aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGithub Actions <actions@github>2020-02-24 03:50:05 +0000
committerGithub Actions <actions@github>2020-02-24 03:50:05 +0000
commit66ce30847b2ee11a2b8da8aa4df4754fcb46a861 (patch)
treea28ef1059cfbb94f96c50bf49565515a0c470131
parentinit html lsp (diff)
downloadnvim-lspconfig-66ce30847b2ee11a2b8da8aa4df4754fcb46a861.tar
nvim-lspconfig-66ce30847b2ee11a2b8da8aa4df4754fcb46a861.tar.gz
nvim-lspconfig-66ce30847b2ee11a2b8da8aa4df4754fcb46a861.tar.bz2
nvim-lspconfig-66ce30847b2ee11a2b8da8aa4df4754fcb46a861.tar.lz
nvim-lspconfig-66ce30847b2ee11a2b8da8aa4df4754fcb46a861.tar.xz
nvim-lspconfig-66ce30847b2ee11a2b8da8aa4df4754fcb46a861.tar.zst
nvim-lspconfig-66ce30847b2ee11a2b8da8aa4df4754fcb46a861.zip
[docgen] Update README.md
skip-checks: true
-rw-r--r--README.md32
1 files changed, 32 insertions, 0 deletions
diff --git a/README.md b/README.md
index 7d04b9af..b1314a58 100644
--- a/README.md
+++ b/README.md
@@ -212,6 +212,7 @@ that config.
- [ghcide](#ghcide)
- [gopls](#gopls)
- [hie](#hie)
+- [html](#html)
- [intelephense](#intelephense)
- [jsonls](#jsonls)
- [julials](#julials)
@@ -1686,6 +1687,37 @@ require'nvim_lsp'.hie.setup{}
root_dir = root_pattern("stack.yaml", "package.yaml", ".git")
```
+## html
+
+https://github.com/vscode-langservers/vscode-html-languageserver-bin
+
+`html-languageserver` can be installed via `:LspInstall htmlls` or by yourself with `npm`:
+```sh
+npm install -g vscode-html-languageserver-bin
+```
+
+Can be installed in Nvim with `:LspInstall html`
+
+```lua
+require'nvim_lsp'.html.setup{}
+
+ Default Values:
+ capabilities = default capabilities, with offsetEncoding utf-8
+ cmd = { "html-languageserver", "--stdio" }
+ filetypes = { "html" }
+ init_options = {
+ configurationSection = { "html", "css", "javascript" },
+ embeddedLanguages = {
+ css = true,
+ javascript = true
+ }
+ }
+ log_level = 2
+ on_init = function to handle changing offsetEncoding
+ root_dir = root_pattern("package.json")
+ settings = {}
+```
+
## intelephense
https://intelephense.com/