diff --git a/fnl/plugin/lsp.fnl b/fnl/plugin/lsp.fnl index a0e9c81..1ca1951 100644 --- a/fnl/plugin/lsp.fnl +++ b/fnl/plugin/lsp.fnl @@ -39,9 +39,10 @@ (fn configure [] (let [lsp (require :lspconfig) 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 ...] - (let [opts { :on_attach `on_attach + (let [opts { :on_attach `lsp_utils.on_attach :capabilities `lsp_cap }] (var last_key nil) (each [_ val (ipairs [...])]