Fix lsp.fnl not correctly calling on_attach

This commit is contained in:
Alexander Rosenberg 2022-12-02 00:12:15 -08:00
parent 9b12ee74ba
commit 043d485629
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -39,9 +39,10 @@
(fn configure [] (fn configure []
(let [lsp (require :lspconfig) (let [lsp (require :lspconfig)
configs (require :lspconfig.configs) configs (require :lspconfig.configs)
lsp_cap ((. (require :cmp_nvim_lsp) :default_capabilities))] lsp_cap ((. (require :cmp_nvim_lsp) :default_capabilities))
lsp_utils (require :plugin.lsp)]
(macro setup_server! [name ...] (macro setup_server! [name ...]
(let [opts { :on_attach `on_attach (let [opts { :on_attach `lsp_utils.on_attach
:capabilities `lsp_cap }] :capabilities `lsp_cap }]
(var last_key nil) (var last_key nil)
(each [_ val (ipairs [...])] (each [_ val (ipairs [...])]