File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 66
66
filetypes = helpers . defaultNullOpts . mkListOf types . str filetypesDefault ''
67
67
Markdown extensions (ie. quarto) can go here.
68
68
'' ;
69
+
70
+ resolveImagePath = helpers . mkNullOrLuaFn' {
71
+ description = "Configures how to resolve image paths." ;
72
+ example = lib . literalExpression ''
73
+ lib.nixvim.mkRaw '''
74
+ function(document_path, image_path, fallback)
75
+ -- document_path is the path to the file that contains the image
76
+ -- image_path is the potentially relative path to the image. For markdown, it's ``
77
+ -- fallback is the default behavior
78
+ return fallback(document_path, image_path)
79
+ end
80
+ ''' ;
81
+ '' ;
82
+ } ;
69
83
} ;
70
84
in
71
85
mapAttrs mkIntegrationOptions {
150
164
download_remote_images = v . downloadRemoteImages ;
151
165
only_render_image_at_cursor = v . onlyRenderImageAtCursor ;
152
166
inherit ( v ) filetypes ;
167
+ resolve_image_path = v . resolveImagePath ;
153
168
} ;
154
169
in
155
170
mapAttrs ( _ : processIntegrationOptions ) integrations ;
You can’t perform that action at this time.
0 commit comments