File tree Expand file tree Collapse file tree
docs/manual/release-notes Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7777[ soliprem] ( https://github.com/soliprem ) :
7878
7979- Lazy load a bunch of stuff:
80+ - ` autocomplete/blink-cmp ` : lazy-load on insert or command-line entry.
8081 - ` git/hunk-nvim ` : lazy-load on ` DiffEditor ` .
8182 - ` utility/crazy-coverage ` : lazy-load on coverage commands.
8283 - ` utility/yanky-nvim ` : lazy-load after UI initialization.
Original file line number Diff line number Diff line change @@ -215,7 +215,56 @@ in {
215215 '' }
216216
217217 ${ optionalString usingBlinkCmp ''
218- capabilities = require('blink.cmp').get_lsp_capabilities()
218+ -- HACK: copied from blink.cmp so the plugin can remain lazy-loaded. Biding our
219+ -- time until dynamic registration comes to save us (i.e. blink v2)
220+ capabilities = {
221+ textDocument = {
222+ completion = {
223+ completionItem = {
224+ snippetSupport = true,
225+ commitCharactersSupport = false,
226+ documentationFormat = {
227+ "markdown",
228+ "plaintext",
229+ },
230+ deprecatedSupport = true,
231+ preselectSupport = false,
232+ tagSupport = {
233+ valueSet = {
234+ 1, -- Deprecated
235+ },
236+ },
237+ insertReplaceSupport = true,
238+ resolveSupport = {
239+ properties = {
240+ "documentation",
241+ "detail",
242+ "additionalTextEdits",
243+ "command",
244+ "data",
245+ },
246+ },
247+ insertTextModeSupport = {
248+ valueSet = {
249+ 1, -- asIs
250+ },
251+ },
252+ labelDetailsSupport = true,
253+ },
254+ completionList = {
255+ itemDefaults = {
256+ "commitCharacters",
257+ "editRange",
258+ "insertTextFormat",
259+ "insertTextMode",
260+ "data",
261+ },
262+ },
263+ contextSupport = true,
264+ insertTextMode = 1, -- asIs
265+ },
266+ },
267+ }
219268 '' }
220269 '' ;
221270 } ;
You can’t perform that action at this time.
0 commit comments