From f9f799b69f98051aa3b52db38e87369dca01d08d Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 21 Jan 2022 08:29:39 +0100 Subject: feat(html): enable formatter by default (#1669) --- lua/lspconfig/server_configurations/html.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lua') diff --git a/lua/lspconfig/server_configurations/html.lua b/lua/lspconfig/server_configurations/html.lua index 315143dd..2f8214f4 100644 --- a/lua/lspconfig/server_configurations/html.lua +++ b/lua/lspconfig/server_configurations/html.lua @@ -15,6 +15,7 @@ return { single_file_support = true, settings = {}, init_options = { + provideFormatter = true, embeddedLanguages = { css = true, javascript = true }, configurationSection = { 'html', 'css', 'javascript' }, }, @@ -31,6 +32,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() -- cgit v1.2.3-70-g09d2