summaryrefslogtreecommitdiff
path: root/fnl/config/lsp/lsp-installer.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-07 22:32:53 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-07 22:32:53 +0200
commit71d538630b226da37e4ef21c5a84d6fad5f55421 (patch)
tree5f87a9c1194a556d12ffca79ea98a08d76af548e /fnl/config/lsp/lsp-installer.fnl
parentfa9a5c6b80b5b0ffdcddc4b1d1c6cfe887d0bb04 (diff)
fix(load plugin): correct loading err
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)))))