Skip to content

Commit d1fc204

Browse files
committed
more updates
1 parent 8ba2285 commit d1fc204

File tree

3 files changed

+598
-0
lines changed

3 files changed

+598
-0
lines changed

lua/custom/plugins/cmp-zotcite.lua

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
return {
2+
-- add blink.compat
3+
{
4+
'saghen/blink.compat',
5+
-- use the latest release
6+
version = '*',
7+
-- lazy.nvim will automatically load the plugin when it's required by blink.cmp
8+
lazy = true,
9+
-- make sure to set opts so that lazy.nvim calls blink.compat's setup
10+
opts = {},
11+
},
12+
13+
{
14+
'saghen/blink.cmp',
15+
version = '1.*',
16+
dependencies = {
17+
-- add the zotcite source
18+
{ 'jalvesaq/cmp-zotcite' },
19+
-- zotcite is also needed
20+
{ 'jalvesaq/zotcite' },
21+
},
22+
sources = {
23+
-- remember to enable your providers here
24+
default = { 'lsp', 'path', 'snippets', 'buffer', 'cmp_zotcite' },
25+
providers = {
26+
-- create provider
27+
cmp_zotcite = {
28+
-- IMPORTANT: use the same name as you would for nvim-cmp
29+
name = 'cmp_zotcite',
30+
module = 'blink.compat.source',
31+
32+
-- all blink.cmp source config options work as normal:
33+
score_offset = -3,
34+
35+
-- options specific to cmp-zotcite if needed
36+
opts = {},
37+
},
38+
},
39+
},
40+
},
41+
}

0 commit comments

Comments
 (0)