summaryrefslogtreecommitdiff
path: root/lua/lsp/providers/jsonls.lua
diff options
context:
space:
mode:
authorAbouzar Parvan <[email protected]>2021-10-09 09:33:23 +0330
committerGitHub <[email protected]>2021-10-09 08:03:23 +0200
commit5fef931d8720f2ef0d7a0fca18b96f31fd36689a (patch)
tree61847af73e6b0a7a5df5bdfed39fc37a71bfb642 /lua/lsp/providers/jsonls.lua
parente2df61f2565e2b1c16444b31e657f1f9df8e716b (diff)
fix: move jsonls commands under setup (#1685)
Diffstat (limited to 'lua/lsp/providers/jsonls.lua')
-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,
+ },
},
},
}