From 7cfec10601bd2f611651a86175240d2394a204ff Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Thu, 19 Dec 2024 21:57:03 +0100 Subject: Add blink.cmp --- fnl/plugins/lsp/mason-lspconfig.fnl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'fnl/plugins/lsp/mason-lspconfig.fnl') diff --git a/fnl/plugins/lsp/mason-lspconfig.fnl b/fnl/plugins/lsp/mason-lspconfig.fnl index 105693e..fbf3d1d 100644 --- a/fnl/plugins/lsp/mason-lspconfig.fnl +++ b/fnl/plugins/lsp/mason-lspconfig.fnl @@ -2,16 +2,16 @@ ;; setup hooks for client configurations. (λ capabilities [] - (let [cmp-lsp (require :cmp_nvim_lsp)] - (cmp-lsp.default_capabilities (vim.lsp.protocol.make_client_capabilities)))) + (let [blink-cmp (require :blink.cmp)] + (blink-cmp.get_lsp_capabilities))) (λ handlers [server] (let [servers (require :plugins.lsp.servers) - lspconfig (require :lspconfig)] - (let [config (. lspconfig server) - opts (or (. servers server) {})] - (tset opts :capabilities (capabilities)) - (config.setup opts)))) + lspconfigs (require :lspconfig)] + (let [lspconfig (. lspconfigs server) + server-config (or (. servers server) {})] + (tset server-config :capabilities (capabilities)) + (lspconfig.setup server-config)))) (λ setup [] (let [mason-lspconfig (require :mason-lspconfig) -- cgit v1.2.3-70-g09d2