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.fnl10
1 files changed, 6 insertions, 4 deletions
diff --git a/fnl/config/lsp/lsp-installer.fnl b/fnl/config/lsp/lsp-installer.fnl
index af9a4e8..0b9ebe4 100644
--- a/fnl/config/lsp/lsp-installer.fnl
+++ b/fnl/config/lsp/lsp-installer.fnl
@@ -24,7 +24,9 @@
: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)))))
+(let [lsp-installer (util.load-plugin :nvim-lsp-installer)
+ lspconfig (util.load-plugin :lspconfig)]
+ (lsp-installer.setup)
+ (each [_ server (ipairs (lsp-installer.get_installed_servers))]
+ (let [server-config (. lspconfig server.name)]
+ (server-config.setup (get-server-opts server)))))