diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-06 22:36:22 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-06 22:36:22 +0200 |
commit | b520b0f48f922d93ac448bbbee90b9d502c5ced8 (patch) | |
tree | 5619123e63cdfd7a5258de68b9a8187928637d6a | |
parent | d0dff620968d0666220be415ec33e80dde2d43c9 (diff) |
feat(jsonls): add fnl config
-rw-r--r-- | fnl/config/lsp/settings/jsonls.fnl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/fnl/config/lsp/settings/jsonls.fnl b/fnl/config/lsp/settings/jsonls.fnl new file mode 100644 index 0000000..1475fd1 --- /dev/null +++ b/fnl/config/lsp/settings/jsonls.fnl @@ -0,0 +1,17 @@ +;; Json schema store catalog language server. +(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) ]))}}}}))) |