summaryrefslogtreecommitdiff
path: root/fnl/config/lsp/lsp-installer.fnl
diff options
context:
space:
mode:
Diffstat (limited to 'fnl/config/lsp/lsp-installer.fnl')
-rw-r--r--fnl/config/lsp/lsp-installer.fnl11
1 files changed, 5 insertions, 6 deletions
diff --git a/fnl/config/lsp/lsp-installer.fnl b/fnl/config/lsp/lsp-installer.fnl
index b5ebb36..7946fdf 100644
--- a/fnl/config/lsp/lsp-installer.fnl
+++ b/fnl/config/lsp/lsp-installer.fnl
@@ -3,7 +3,7 @@
{autoload {util util}})
(def- opts
- {:on_attach: ((require :config.lsp.handlers).on_attach)
+ {:on_attach: (require :config.lsp.handlers).on_attach
:capabilities ((require :config.lsp.handlers).capabilities)})
(defn- get-server-opts [server]
@@ -18,8 +18,7 @@
(vim.tbl_deep_extend :force pyright-opts opts))))
-(let [(ok? lsp-installer) util.load-plugin :lsp-installer]
- (when ok?
- (lsp-installer.on_server_ready (fn [server]
- (let [opts (get-server-opts server)]
- server:setup opts)))))
+(let [lsp-installer (util.load-plugin :lsp-installer)]
+ (lsp-installer.on_server_ready (fn [server]
+ (let [opts (get-server-opts server)]
+ server:setup opts)))))