mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-07 07:09:15 +00:00
add(nvim): even more macros
This commit is contained in:
parent
3bf9695311
commit
a121d93bdb
5 changed files with 17 additions and 36 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue