summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lua/lsp/providers/jsonls.lua12
1 files changed, 7 insertions, 5 deletions
diff --git a/lua/lsp/providers/jsonls.lua b/lua/lsp/providers/jsonls.lua
index 72c67b47..1fffa686 100644
--- a/lua/lsp/providers/jsonls.lua
+++ b/lua/lsp/providers/jsonls.lua
@@ -183,11 +183,13 @@ local opts = {
schemas = extended_schemas,
},
},
- commands = {
- Format = {
- function()
- vim.lsp.buf.range_formatting({}, { 0, 0 }, { vim.fn.line "$", 0 })
- end,
+ setup = {
+ commands = {
+ Format = {
+ function()
+ vim.lsp.buf.range_formatting({}, { 0, 0 }, { vim.fn.line "$", 0 })
+ end,
+ },
},
},
}