From 8c523ffaf490b6e4b876d217683fb0c69b84df84 Mon Sep 17 00:00:00 2001 From: Michael Lingelbach Date: Wed, 1 Dec 2021 10:11:44 -0500 Subject: docs(jsonls): remove formatting workaround * jsonls supports formatting requests now beyond range formatting --- lua/lspconfig/server_configurations/jsonls.lua | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'lua/lspconfig/server_configurations/jsonls.lua') diff --git a/lua/lspconfig/server_configurations/jsonls.lua b/lua/lspconfig/server_configurations/jsonls.lua index 3b40c8bf..beed940a 100644 --- a/lua/lspconfig/server_configurations/jsonls.lua +++ b/lua/lspconfig/server_configurations/jsonls.lua @@ -28,20 +28,6 @@ vscode-json-language-server, a language server for JSON and JSON schema npm i -g vscode-langservers-extracted ``` -vscode-json-language-server only provides range formatting. You can map a command that applies range formatting to the entire document: - -```lua -require'lspconfig'.jsonls.setup { - commands = { - Format = { - function() - vim.lsp.buf.range_formatting({},{0,0},{vim.fn.line("$"),0}) - end - } - } -} -``` - Neovim does not currently include built-in snippets. `vscode-json-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. ```lua -- cgit v1.2.3-70-g09d2