From 71d538630b226da37e4ef21c5a84d6fad5f55421 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Thu, 7 Apr 2022 22:32:53 +0200 Subject: fix(load plugin): correct loading err --- fnl/config/lsp/settings/jsonls.fnl | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to 'fnl/config/lsp/settings/jsonls.fnl') 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) ]))}}}}))) -- cgit v1.2.3-70-g09d2