diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-05-01 23:06:03 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-05-01 23:06:03 +0200 |
commit | f845a7b0588559750b1cb7eede1b3aecb450cdfe (patch) | |
tree | 1c2028e77ef60fb5a00e0abce46a0d4bf66d76d9 /fnl/config/lsp/lsp-installer.fnl | |
parent | 609daf2f632e907f0aed920084b51f608a63edf7 (diff) |
style: fmt with fnlfmt
Diffstat (limited to 'fnl/config/lsp/lsp-installer.fnl')
-rw-r--r-- | fnl/config/lsp/lsp-installer.fnl | 35 |
1 files changed, 16 insertions, 19 deletions
diff --git a/fnl/config/lsp/lsp-installer.fnl b/fnl/config/lsp/lsp-installer.fnl index 42115c0..af9a4e8 100644 --- a/fnl/config/lsp/lsp-installer.fnl +++ b/fnl/config/lsp/lsp-installer.fnl @@ -1,33 +1,30 @@ ;; Loads default handlers and specific language settings. -(module config.lsp.lsp-installer - {autoload {util util}}) +(module config.lsp.lsp-installer {autoload {util util}}) -(def handler-opts - (let [handlers (require :config.lsp.handlers)] - {:on_attach handlers.on-attach - :capabilities (handlers.capabilities)})) +(def handler-opts (let [handlers (require :config.lsp.handlers)] + {:on_attach handlers.on-attach + :capabilities (handlers.capabilities)})) (defn- jsonls-opts [] - (let [jsonls-opts (require :config.lsp.settings.jsonls)] - (vim.tbl_deep_extend :force jsonls-opts handler-opts))) + (let [jsonls-opts (require :config.lsp.settings.jsonls)] + (vim.tbl_deep_extend :force jsonls-opts handler-opts))) (defn- sumneko-lua-opts [] - (let [sumneko-lua (require :config.lsp.settings.sumneko-lua)] - (vim.tbl_deep_extend :force sumneko-lua.opts handler-opts))) + (let [sumneko-lua (require :config.lsp.settings.sumneko-lua)] + (vim.tbl_deep_extend :force sumneko-lua.opts handler-opts))) (defn- pyright-opts [] - (let [pyright (require :config.lsp.settings.pyright)] - (vim.tbl_deep_extend :force pyright.opts handler-opts))) + (let [pyright (require :config.lsp.settings.pyright)] + (vim.tbl_deep_extend :force pyright.opts handler-opts))) (defn- get-server-opts [server] (match server.name - "jsonls" (jsonls-opts) - "pyright" (pyright-opts) - "sumneko_lua" (sumneko-lua-opts) + :jsonls (jsonls-opts) + :pyright (pyright-opts) + :sumneko_lua (sumneko-lua-opts) _ handler-opts)) (let [lsp-installer (util.load-plugin :nvim-lsp-installer)] - (lsp-installer.on_server_ready - (fn [server] - (let [opts (get-server-opts server)] - (server:setup opts))))) + (lsp-installer.on_server_ready (fn [server] + (let [opts (get-server-opts server)] + (server:setup opts))))) |