File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -65,8 +65,18 @@ if vim.g.markview_blink_loaded == false and blink ~= nil then
65
65
if config then
66
66
--- ISSUE, blink doesn't merge default sources.
67
67
68
- local default = config .sources .default or {};
69
- config .sources .per_filetype [ft ] = vim .list_extend (default , { " markview" });
68
+ local default = config .sources .default ;
69
+
70
+ if vim .islist (default ) then
71
+ config .sources .per_filetype [ft ] = vim .list_extend (default , { " markview" });
72
+ else
73
+ --- Empty context.
74
+ local can_exec , exec = pcall (default , {});
75
+
76
+ if can_exec and vim .islist (exec ) then
77
+ config .sources .per_filetype [ft ] = vim .list_extend (exec , { " markview" });
78
+ end
79
+ end
70
80
else
71
81
pcall (blink .add_filetype_source , ft , " markview" );
72
82
end
You can’t perform that action at this time.
0 commit comments