summaryrefslogtreecommitdiff
path: root/fnl/config/lsp
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-06-28 22:26:22 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-06-28 22:26:22 +0200
commit93fba1cf8a959cb98f7114e5100de2c0f122fc8c (patch)
tree753a915bccfe867d3218efd47afa60c0218e5683 /fnl/config/lsp
parent6bd5bb2168c017ed11b8918bafe42b703da32acc (diff)
Fix lsp installer table
Diffstat (limited to 'fnl/config/lsp')
-rw-r--r--fnl/config/lsp/lsp-installer.fnl6
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))))))