diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-06-28 22:26:22 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-06-28 22:26:22 +0200 |
commit | 93fba1cf8a959cb98f7114e5100de2c0f122fc8c (patch) | |
tree | 753a915bccfe867d3218efd47afa60c0218e5683 /fnl | |
parent | 6bd5bb2168c017ed11b8918bafe42b703da32acc (diff) |
Fix lsp installer table
Diffstat (limited to 'fnl')
-rw-r--r-- | fnl/config/lsp/lsp-installer.fnl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fnl/config/lsp/lsp-installer.fnl b/fnl/config/lsp/lsp-installer.fnl index e3b153f..34a0520 100644 --- a/fnl/config/lsp/lsp-installer.fnl +++ b/fnl/config/lsp/lsp-installer.fnl @@ -14,6 +14,7 @@ :texlab true :tflint true :yamlls true + :taplo true :zk true}) (defn- merge [default-servers installed-servers] @@ -21,7 +22,8 @@ (each [_ server (ipairs installed-servers)] (if (not= (. servers server.name) true) (tset servers server.name true))) - servers)) + (icollect [k (pairs servers)] + k))) (defn- handler-opts [] (let [handlers (require :config.lsp.handlers)] @@ -50,6 +52,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)))))) |