From 02a7d8c0950335fc7187433ecfa5b8b313bb3c8d Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Tue, 31 May 2022 23:26:45 +0200 Subject: Fix bug in merge of installed and default ls --- fnl/config/lsp/lsp-installer.fnl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fnl') diff --git a/fnl/config/lsp/lsp-installer.fnl b/fnl/config/lsp/lsp-installer.fnl index d6d1497..df99ac2 100644 --- a/fnl/config/lsp/lsp-installer.fnl +++ b/fnl/config/lsp/lsp-installer.fnl @@ -19,7 +19,7 @@ (defn- merge [default-servers installed-servers] (let [servers default-servers] (each [_ server (ipairs installed-servers)] - (if (. servers server.name) + (if (not= (. servers server.name) true) (tset servers (+ (length servers) 1) server.name))) servers)) @@ -50,6 +50,6 @@ lspconfig (util.load-plugin :lspconfig)] (let [servers (merge default-servers (lsp-installer.get_installed_servers))] (lsp-installer.setup {:ensure_installed servers}) - (each [_ server (pairs servers)] + (each [_ server (ipairs servers)] (let [server-config (. lspconfig server)] (server-config.setup (get-server-opts server)))))) -- cgit v1.2.3-70-g09d2