summaryrefslogtreecommitdiff
path: root/fnl/config/lsp
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-09 12:49:35 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-09 12:49:35 +0200
commitb173e4a1a1e3f710cf304e726cdea6c7bf793c26 (patch)
tree8299c830f6c6f682e3b9aece4a4800defe638bcc /fnl/config/lsp
parentdcaead946f1c45573c792cf5d8282829c96d4134 (diff)
fix(lsp installer): add let for handlers
Diffstat (limited to 'fnl/config/lsp')
-rw-r--r--fnl/config/lsp/lsp-installer.fnl5
1 files changed, 3 insertions, 2 deletions
diff --git a/fnl/config/lsp/lsp-installer.fnl b/fnl/config/lsp/lsp-installer.fnl
index f77a4be..fd2271d 100644
--- a/fnl/config/lsp/lsp-installer.fnl
+++ b/fnl/config/lsp/lsp-installer.fnl
@@ -3,8 +3,9 @@
{autoload {util util}})
(def- opts
- {:on_attach: (require :config.lsp.handlers).on_attach
- :capabilities (require :config.lsp.handlers).capabilities})
+ (let [handlers (require :config.lsp.handlers)]
+ {:on_attach: handlers.on_attach
+ :capabilities handlers.capabilities}))
(defn- get-server-opts [server]
(when (= server.name :jsonls)