fix: move jsonls commands under setup (#1685)

This commit is contained in:
Abouzar Parvan 2021-10-09 09:33:23 +03:30 committed by GitHub
parent e2df61f256
commit 5fef931d87
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
},
},
},
}