Commit a1b2bf0
committed
feat: support configuration via vim.g.render_markdown_config
## Details
Users can now optionally configure this plugin using the
`render_markdown_config` global. The value of this global is the same as
what a user would normally pass to the `setup` method. Calling `setup`
manually is not required when using this configuration method.
Using this method of configuration provides a guarantee that the correct
configuration will always be used, which is only really a problem when
it comes to various lazy loading mechanisms that can potentially use the
default configuration for the first buffer opened.1 parent 10126ef commit a1b2bf0
File tree
3 files changed
+3
-3
lines changed- doc
- lua/render-markdown
- plugin
3 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments