diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-12-19 21:57:03 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-12-19 21:57:03 +0100 |
commit | 7cfec10601bd2f611651a86175240d2394a204ff (patch) | |
tree | 6f3890328c418ddec12193eaad46acbe9f0c4c11 /fnl/plugins/lsp/mason-lspconfig.fnl | |
parent | a355b32ec773d6fd830e1e18362d9e9de7ed5b75 (diff) |
Add blink.cmp
Diffstat (limited to 'fnl/plugins/lsp/mason-lspconfig.fnl')
-rw-r--r-- | fnl/plugins/lsp/mason-lspconfig.fnl | 14 |
1 files changed, 7 insertions, 7 deletions
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) |