diff options
| author | Github Actions <actions@github> | 2020-02-24 03:50:05 +0000 |
|---|---|---|
| committer | Github Actions <actions@github> | 2020-02-24 03:50:05 +0000 |
| commit | 66ce30847b2ee11a2b8da8aa4df4754fcb46a861 (patch) | |
| tree | a28ef1059cfbb94f96c50bf49565515a0c470131 | |
| parent | init html lsp (diff) | |
| download | nvim-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.md | 32 |
1 files changed, 32 insertions, 0 deletions
@@ -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/ |
