Skip to content

Commit da70762

Browse files
committedDec 3, 2024
feat: add terminal mode as a rendered mode by default
## Details Testing out using this plugin with `fzf-lua` preview. `fzf-lua` uses terminal mode to interact with `fzf`. Making terminal mode rendered by default allows the preview windows to be rendered and shouldn't have any real impact to users.
1 parent 8790a38 commit da70762

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed
 

Diff for: ‎README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ require('render-markdown').setup({
166166
]],
167167
},
168168
},
169-
-- Vim modes that will show a rendered view of the markdown file
169+
-- Vim modes that will show a rendered view of the markdown file, :h mode()
170170
-- All other modes will be unaffected by this plugin
171-
render_modes = { 'n', 'c' },
171+
render_modes = { 'n', 'c', 't' },
172172
anti_conceal = {
173173
-- This enables hiding any added text on the line the cursor is on
174174
enabled = true,

Diff for: ‎doc/render-markdown.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,9 @@ Default Configuration ~
213213
]],
214214
},
215215
},
216-
-- Vim modes that will show a rendered view of the markdown file
216+
-- Vim modes that will show a rendered view of the markdown file, :h mode()
217217
-- All other modes will be unaffected by this plugin
218-
render_modes = { 'n', 'c' },
218+
render_modes = { 'n', 'c', 't' },
219219
anti_conceal = {
220220
-- This enables hiding any added text on the line the cursor is on
221221
enabled = true,

Diff for: ‎lua/render-markdown/health.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ local state = require('render-markdown.state')
44
local M = {}
55

66
---@private
7-
M.version = '7.6.6'
7+
M.version = '7.6.7'
88

99
function M.check()
1010
M.start('version')

Diff for: ‎lua/render-markdown/init.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,9 @@ M.default_config = {
290290
]],
291291
},
292292
},
293-
-- Vim modes that will show a rendered view of the markdown file
293+
-- Vim modes that will show a rendered view of the markdown file, :h mode()
294294
-- All other modes will be unaffected by this plugin
295-
render_modes = { 'n', 'c' },
295+
render_modes = { 'n', 'c', 't' },
296296
anti_conceal = {
297297
-- This enables hiding any added text on the line the cursor is on
298298
enabled = true,

0 commit comments

Comments
 (0)
Please sign in to comment.