ref(nvim): remove for! macro, use "each" instead

This commit is contained in:
Léana 江 2024-02-03 18:07:57 +01:00 committed by Léana 江
parent 7cf4410bb3
commit 32e6c1321f
2 changed files with 9 additions and 13 deletions

View file

@ -130,15 +130,15 @@
new-virt-text))]
(req-do! :ufo #($.setup {:fold_virt_text_handler handler})))
(for! (fn [k v]
(let [config {: capabilities
:on_attach (fn [client bufno]
(on_attach client bufno)
(v.on_attach client bufno))
:settings v.settings}]
((-> (require :lspconfig)
(. k)
(. :setup)) config))) servers)
(each [k v (pairs servers)]
(local config {: capabilities
:on_attach (fn [client bufno]
(on_attach client bufno)
(v.on_attach client bufno))
:settings v.settings})
((-> (require :lspconfig)
(. k)
(. :setup)) config))
(let [config {: capabilities
:cmd [:jdt-language-server