add(nvim): even more macros

This commit is contained in:
Léana 江 2024-01-28 13:28:01 +01:00 committed by Léana 江
parent 3bf9695311
commit a121d93bdb
5 changed files with 17 additions and 36 deletions

View file

@ -1,6 +1,5 @@
(import-macros {: exec! : map! : setlocal!} :hibiscus.vim)
(import-macros {: fst! : require-then!} :macros)
(local {: foreach} (require :helpers))
(import-macros {: fst! : require-then! : for!} :macros)
(local map vim.keymap.set)
(local servers
@ -129,13 +128,13 @@
new-virt-text))]
(require-then! :ufo #($.setup {:fold_virt_text_handler handler})))
(foreach servers (fn [k v]
(for! (fn [k v]
(let [config {: capabilities
:on_attach #((on_attach $) (v.on_attach $))
:settings v.settings}]
((-> (require :lspconfig)
(. k)
(. :setup)) config))))
(. :setup)) config))) servers)
(let [config {: capabilities
:cmd [:jdt-language-server