diff options
| author | github-actions <github-actions@github.com> | 2022-01-21 07:30:00 +0000 |
|---|---|---|
| committer | github-actions <github-actions@github.com> | 2022-01-21 07:30:00 +0000 |
| commit | 58d2ba6b968539a20d701be0bf98ae154456e265 (patch) | |
| tree | b57887ce8f4b3865865db073ff89d96fd678fbbc | |
| parent | feat(html): enable formatter by default (#1669) (diff) | |
| download | nvim-lspconfig-58d2ba6b968539a20d701be0bf98ae154456e265.tar nvim-lspconfig-58d2ba6b968539a20d701be0bf98ae154456e265.tar.gz nvim-lspconfig-58d2ba6b968539a20d701be0bf98ae154456e265.tar.bz2 nvim-lspconfig-58d2ba6b968539a20d701be0bf98ae154456e265.tar.lz nvim-lspconfig-58d2ba6b968539a20d701be0bf98ae154456e265.tar.xz nvim-lspconfig-58d2ba6b968539a20d701be0bf98ae154456e265.tar.zst nvim-lspconfig-58d2ba6b968539a20d701be0bf98ae154456e265.zip | |
docs: update server_configurations.md
skip-checks: true
| -rw-r--r-- | doc/server_configurations.md | 5 | ||||
| -rw-r--r-- | doc/server_configurations.txt | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/doc/server_configurations.md b/doc/server_configurations.md index 2c559faf..01d28e55 100644 --- a/doc/server_configurations.md +++ b/doc/server_configurations.md @@ -2552,6 +2552,8 @@ npm i -g vscode-langservers-extracted Neovim does not currently include built-in snippets. `vscode-html-language-server` only provides completions when snippet support is enabled. To enable completion, install a snippet plugin and add the following override to your language client capabilities during setup. +The code-formatting feature of the lsp can be controlled with the `provideFormatter` option. + ```lua --Enable (broadcasting) snippet capability for completion local capabilities = vim.lsp.protocol.make_client_capabilities() @@ -2581,7 +2583,8 @@ require'lspconfig'.html.setup{} embeddedLanguages = { css = true, javascript = true - } + }, + provideFormatter = true } root_dir = function(startpath) return M.search_ancestors(startpath, matcher) diff --git a/doc/server_configurations.txt b/doc/server_configurations.txt index 2c559faf..01d28e55 100644 --- a/doc/server_configurations.txt +++ b/doc/server_configurations.txt @@ -2552,6 +2552,8 @@ npm i -g vscode-langservers-extracted Neovim does not currently include built-in snippets. `vscode-html-language-server` only provides completions when snippet support is enabled. To enable completion, install a snippet plugin and add the following override to your language client capabilities during setup. +The code-formatting feature of the lsp can be controlled with the `provideFormatter` option. + ```lua --Enable (broadcasting) snippet capability for completion local capabilities = vim.lsp.protocol.make_client_capabilities() @@ -2581,7 +2583,8 @@ require'lspconfig'.html.setup{} embeddedLanguages = { css = true, javascript = true - } + }, + provideFormatter = true } root_dir = function(startpath) return M.search_ancestors(startpath, matcher) |
