diff options
Diffstat (limited to 'fnl/config/lsp/settings')
| -rw-r--r-- | fnl/config/lsp/settings/jsonls.fnl | 22 | ||||
| -rw-r--r-- | fnl/config/lsp/settings/pyright.fnl | 6 | ||||
| -rw-r--r-- | fnl/config/lsp/settings/sumneko-lua.fnl | 30 | 
3 files changed, 27 insertions, 31 deletions
diff --git a/fnl/config/lsp/settings/jsonls.fnl b/fnl/config/lsp/settings/jsonls.fnl index c1cb710..73e8975 100644 --- a/fnl/config/lsp/settings/jsonls.fnl +++ b/fnl/config/lsp/settings/jsonls.fnl @@ -1,16 +1,12 @@  ;; 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)] -  (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) ]))]}}})) +  (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)]))]}}})) diff --git a/fnl/config/lsp/settings/pyright.fnl b/fnl/config/lsp/settings/pyright.fnl index bb39ab5..7269469 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 settings  -  {:settings  -   {:python  -    {:analysis -     {:typeCheckingMode "off"}}}}) +(def settings {:settings {:python {:analysis {:typeCheckingMode :off}}}}) diff --git a/fnl/config/lsp/settings/sumneko-lua.fnl b/fnl/config/lsp/settings/sumneko-lua.fnl index e39c801..cc8e9ab 100644 --- a/fnl/config/lsp/settings/sumneko-lua.fnl +++ b/fnl/config/lsp/settings/sumneko-lua.fnl @@ -1,19 +1,23 @@  ;; Config for a Lua language server.  (module config.lsp.settings.sumneko-lua) -(def- workspace  -  {:library {(vim.fn.expand "$VIMRUNTIME/lua") true -             (vim.fn.expand "$VIMRUNTIME/lua/vim/lsp") true}}) +(def- workspace +      {: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 settings  -  {:settings { -    :Lua { -      :diagnostics diagnostics -      :workspace workspace}}}) +(def settings {:settings {:Lua {: diagnostics : workspace}}})  |