diff options
Diffstat (limited to 'lua/lsp/providers')
| -rw-r--r-- | lua/lsp/providers/jsonls.lua | 12 | 
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, +      },      },    },  } | 
