From 056078bed1039deda44f59185acee07c37f3dc3b Mon Sep 17 00:00:00 2001 From: Sola Date: Mon, 16 Dec 2024 00:52:07 +0800 Subject: [PATCH] feat(lsp): auto-register `blink.cmp` client capabilities (#616) --- lua/rustaceanvim/config/server.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/rustaceanvim/config/server.lua b/lua/rustaceanvim/config/server.lua index 0b09cf44..9027d556 100644 --- a/lua/rustaceanvim/config/server.lua +++ b/lua/rustaceanvim/config/server.lua @@ -134,6 +134,9 @@ end ---@return lsp.ClientCapabilities function server.create_client_capabilities() local rs_capabilities = make_rustaceanvim_capabilities() + local blink_capabilities = mk_capabilities_if_available('blink.cmp', function(blink) + return blink.get_lsp_capabilities() + end) local cmp_capabilities = mk_capabilities_if_available('cmp_nvim_lsp', function(cmp_nvim_lsp) return cmp_nvim_lsp.default_capabilities() end) @@ -153,6 +156,7 @@ function server.create_client_capabilities() return vim.tbl_deep_extend( 'force', rs_capabilities, + blink_capabilities, cmp_capabilities, selection_range_capabilities, folding_range_capabilities