diff options
author | Gustaf Rydholm <gustaf@nexure.io> | 2022-05-31 23:26:45 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf@nexure.io> | 2022-05-31 23:26:45 +0200 |
commit | 02a7d8c0950335fc7187433ecfa5b8b313bb3c8d (patch) | |
tree | aec8bf387ed214ac1c3eeda1a712528bf491b5c1 /fnl/config/lsp | |
parent | ba831c90acd7240d6982802e37d61a8bd25d4112 (diff) |
Fix bug in merge of installed and default ls
Diffstat (limited to 'fnl/config/lsp')
-rw-r--r-- | fnl/config/lsp/lsp-installer.fnl | 4 |
1 files changed, 2 insertions, 2 deletions
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)))))) |