Skip to content

Commit

Permalink
feat(lsp): auto-register blink.cmp client capabilities (#616)
Browse files Browse the repository at this point in the history
  • Loading branch information
unlimitedsola authored Dec 15, 2024
1 parent 1575af5 commit 056078b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/rustaceanvim/config/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 056078b

Please sign in to comment.