File tree 1 file changed +18
-7
lines changed
1 file changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -41,14 +41,25 @@ if vim.g.markview_blink_loaded == false and blink ~= nil then
41
41
ignore_enable = true
42
42
});
43
43
44
- pcall (blink .add_source_provider , " markview" , {
45
- name = " markview" ,
46
- module = " blink-markview" ,
44
+ if blink .add_source_provider then
45
+ pcall (blink .add_source_provider , " markview" , {
46
+ name = " markview" ,
47
+ module = " blink-markview" ,
47
48
48
- should_show_items = function ()
49
- return vim .tbl_contains (fts , vim .o .filetype );
50
- end
51
- });
49
+ should_show_items = function ()
50
+ return vim .tbl_contains (fts , vim .o .filetype );
51
+ end
52
+ });
53
+ else
54
+ pcall (blink .add_provider , " markview" , {
55
+ name = " markview" ,
56
+ module = " blink-markview" ,
57
+
58
+ should_show_items = function ()
59
+ return vim .tbl_contains (fts , vim .o .filetype );
60
+ end
61
+ });
62
+ end
52
63
53
64
for _ , ft in ipairs (fts ) do
54
65
if config then
You can’t perform that action at this time.
0 commit comments