summaryrefslogtreecommitdiff
path: root/fnl/config/lsp/settings
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-05-01 23:06:03 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-05-01 23:06:03 +0200
commitf845a7b0588559750b1cb7eede1b3aecb450cdfe (patch)
tree1c2028e77ef60fb5a00e0abce46a0d4bf66d76d9 /fnl/config/lsp/settings
parent609daf2f632e907f0aed920084b51f608a63edf7 (diff)
style: fmt with fnlfmt
Diffstat (limited to 'fnl/config/lsp/settings')
-rw-r--r--fnl/config/lsp/settings/jsonls.fnl21
-rw-r--r--fnl/config/lsp/settings/pyright.fnl6
-rw-r--r--fnl/config/lsp/settings/sumneko-lua.fnl38
3 files changed, 24 insertions, 41 deletions
diff --git a/fnl/config/lsp/settings/jsonls.fnl b/fnl/config/lsp/settings/jsonls.fnl
index f8dfdc2..18d9256 100644
--- a/fnl/config/lsp/settings/jsonls.fnl
+++ b/fnl/config/lsp/settings/jsonls.fnl
@@ -1,17 +1,10 @@
;; Json schema store catalog language server.
-(module config.lsp.settings.jsonls
- {autoload {util util}})
+(module config.lsp.settings.jsonls {autoload {util util}})
(let [schemastore (util.load-plugin :schemastore)]
- {: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)]))]}}})
+ {: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)]))]}}})
diff --git a/fnl/config/lsp/settings/pyright.fnl b/fnl/config/lsp/settings/pyright.fnl
index b1fa064..639ecff 100644
--- a/fnl/config/lsp/settings/pyright.fnl
+++ b/fnl/config/lsp/settings/pyright.fnl
@@ -1,8 +1,4 @@
;; Config for pyright language server.
(module config.lsp.settings.pyright)
-(def opts
- {:settings
- {:python
- {:analysis
- {:typeCheckingMode :off}}}})
+(def opts {:settings {:python {:analysis {:typeCheckingMode :off}}}})
diff --git a/fnl/config/lsp/settings/sumneko-lua.fnl b/fnl/config/lsp/settings/sumneko-lua.fnl
index d40fe9b..0f20f53 100644
--- a/fnl/config/lsp/settings/sumneko-lua.fnl
+++ b/fnl/config/lsp/settings/sumneko-lua.fnl
@@ -2,28 +2,22 @@
(module config.lsp.settings.sumneko-lua)
(def- workspace
- {:library {(vim.fn.expand "$VIMRUNTIME/lua") true
- (vim.fn.expand "$VIMRUNTIME/lua/vim/lsp") true}})
+ {:library {(vim.fn.expand :$VIMRUNTIME/lua) true
+ (vim.fn.expand :$VIMRUNTIME/lua/vim/lsp) true}})
-(def- diagnostics
- {:globals ["vim"
- "map"
- "filter"
- "range"
- "reduce"
- "head"
- "tail"
- "nth"
- "use"
- "describe"
- "it"
- "dump"]})
+(def- diagnostics {:globals [:vim
+ :map
+ :filter
+ :range
+ :reduce
+ :head
+ :tail
+ :nth
+ :use
+ :describe
+ :it
+ :dump]})
-(def- runtime
- {:version "LuaJIT"
- :path (vim.split package.path ";")})
+(def- runtime {:version :LuaJIT :path (vim.split package.path ";")})
-(def opts
- {:settings {:Lua {:diagnostics diagnostics
- :workspace workspace
- :runtime runtime}}})
+(def opts {:settings {:Lua {: diagnostics : workspace : runtime}}})