From 9304b87476b7b0ef64564f20e87e79499eacb0bd Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Tue, 10 May 2022 23:11:42 +0200 Subject: fix(lsp): use lspconfig for lsp server setup --- fnl/config/lsp/lsp-installer.fnl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'fnl/config/lsp/lsp-installer.fnl') 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))))) -- cgit v1.2.3-70-g09d2