diff options
Diffstat (limited to 'fnl/config/lsp/settings/jsonls.fnl')
-rw-r--r-- | fnl/config/lsp/settings/jsonls.fnl | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/fnl/config/lsp/settings/jsonls.fnl b/fnl/config/lsp/settings/jsonls.fnl index 1475fd1..5f4b18b 100644 --- a/fnl/config/lsp/settings/jsonls.fnl +++ b/fnl/config/lsp/settings/jsonls.fnl @@ -2,16 +2,15 @@ (module config.lsp.settings.jsonls {autoload {util util}}) -(let [(ok? schemastore) util.load-plugin :schemastore] - (when ok? - (schemastore.setup - {:init_options { - :providerFormatter false} - :settings { - :json { - :schemas (schemastore.json.schemas)}} - :setup { - :commands { - :Format { - (fn [] - (vim.lsp.buf.range_formatting {} [ 0 0 ] [ (vim.fn.line "$" 0) ]))}}}}))) +(let [schemastore (util.load-plugin :schemastore)] + (schemastore.setup + {:init_options { + :providerFormatter false} + :settings { + :json { + :schemas (schemastore.json.schemas)}} + :setup { + :commands { + :Format { + (fn [] + (vim.lsp.buf.range_formatting {} [ 0 0 ] [ (vim.fn.line "$" 0) ]))}}}}))) |