summaryrefslogtreecommitdiff
path: root/fnl/config/lsp/settings
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-07 22:32:53 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-07 22:32:53 +0200
commit71d538630b226da37e4ef21c5a84d6fad5f55421 (patch)
tree5f87a9c1194a556d12ffca79ea98a08d76af548e /fnl/config/lsp/settings
parentfa9a5c6b80b5b0ffdcddc4b1d1c6cfe887d0bb04 (diff)
fix(load plugin): correct loading err
Diffstat (limited to 'fnl/config/lsp/settings')
-rw-r--r--fnl/config/lsp/settings/jsonls.fnl25
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) ]))}}}})))