diff options
| author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-05-10 23:11:42 +0200 |
|---|---|---|
| committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-05-10 23:11:42 +0200 |
| commit | 9304b87476b7b0ef64564f20e87e79499eacb0bd (patch) | |
| tree | 4be2cb94a6f1693755426656fadd24d0b8d1e1cc /fnl/config/lsp/lsp-installer.fnl | |
| parent | f845a7b0588559750b1cb7eede1b3aecb450cdfe (diff) | |
fix(lsp): use lspconfig for lsp server setup
Diffstat (limited to 'fnl/config/lsp/lsp-installer.fnl')
| -rw-r--r-- | fnl/config/lsp/lsp-installer.fnl | 10 |
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))))) |