diff options
Diffstat (limited to 'fnl/plugins/lsp')
-rw-r--r-- | fnl/plugins/lsp/lspconfig.fnl | 2 | ||||
-rw-r--r-- | fnl/plugins/lsp/mason-lspconfig.fnl | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/fnl/plugins/lsp/lspconfig.fnl b/fnl/plugins/lsp/lspconfig.fnl index 112973b..5cd25d4 100644 --- a/fnl/plugins/lsp/lspconfig.fnl +++ b/fnl/plugins/lsp/lspconfig.fnl @@ -21,5 +21,5 @@ :dependencies [:mason.nvim :williamboman/mason-lspconfig.nvim :b0o/schemastore.nvim - :hrsh7th/cmp-nvim-lsp] + :saghen/blink.cmp] : config} 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) |