Skip to content

Commit a1b2bf0

Browse files
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

3 files changed

+3
-3
lines changed

doc/render-markdown.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*render-markdown.txt* For NVIM v0.11.4 Last change: 2025 October 28
1+
*render-markdown.txt* For NVIM v0.11.5 Last change: 2025 November 03
22

33
==============================================================================
44
Table of Contents *render-markdown-table-of-contents*

lua/render-markdown/health.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ local state = require('render-markdown.state')
66
local M = {}
77

88
---@private
9-
M.version = '8.9.12'
9+
M.version = '8.9.13'
1010

1111
function M.check()
1212
M.start('versions')

plugin/render-markdown.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ if initialized then
44
end
55
initialized = true
66

7-
require('render-markdown').setup()
7+
require('render-markdown').setup(vim.g.render_markdown_config)
88
require('render-markdown.core.colors').init()
99
require('render-markdown.core.command').init()
1010
require('render-markdown.core.log').init()

0 commit comments

Comments
 (0)