mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 22:59:15 +00:00
ref(nvim): remove for! macro, use "each" instead
This commit is contained in:
parent
7cf4410bb3
commit
32e6c1321f
2 changed files with 9 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue