@@ -5,7 +5,7 @@ local state = require('render-markdown.state')
5
5
local M = {}
6
6
7
7
--- @private
8
- M .version = ' 8.1.8 '
8
+ M .version = ' 8.1.9 '
9
9
10
10
function M .check ()
11
11
M .start (' version' )
@@ -50,7 +50,10 @@ function M.check()
50
50
if obsidian .get_client ().opts .ui .enable == false then
51
51
return nil
52
52
else
53
- return ' Ensure UI is disabled by setting ui = { enable = false } in obsidian.nvim config'
53
+ return {
54
+ ' Disable the UI in your obsidian.nvim config' ,
55
+ " require('obsidian').setup({ ui = { enable = false } })" ,
56
+ }
54
57
end
55
58
end )
56
59
end
80
83
function M .disable_advice (language )
81
84
return {
82
85
string.format (' Disable %s support to avoid this warning' , language ),
83
- string.format (' Set { %s = { enabled = false } }' , language ),
86
+ string.format (" require('render-markdown').setup({ { %s = { enabled = false } }) " , language ),
84
87
}
85
88
end
86
89
@@ -116,7 +119,11 @@ function M.check_highlight(filetype)
116
119
if has_highlighter then
117
120
vim .health .ok (filetype .. ' : highlight enabled' )
118
121
else
119
- vim .health .error (filetype .. ' : highlight not enabled' )
122
+ -- TODO(1.0): update advice once module support is removed
123
+ vim .health .error (filetype .. ' : highlight not enabled' , {
124
+ ' Enable the highlight module in your nvim-treesitter config' ,
125
+ " require('nvim-treesitter.configs').setup({ highlight = { enable = true } })" ,
126
+ })
120
127
end
121
128
end
122
129
141
148
142
149
--- @private
143
150
--- @param name string
144
- --- @param validate ? fun ( plugin : any ): string ?
151
+ --- @param validate ? fun ( plugin : any ): string[] ?
145
152
function M .check_plugin (name , validate )
146
153
local has_plugin , plugin = pcall (require , name )
147
154
if not has_plugin then
0 commit comments