Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ebbf28c

Browse files
fix(syntax): Enable vim syntax hl if latex highlights are enabled
1 parent f25f96d commit ebbf28c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ftplugin/org.lua

+4
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ for _, char in ipairs({ '*', '=', '/', '+', '~', '_' }) do
5555
vim.keymap.set('o', 'a' .. char, ':normal va' .. char .. '<CR>', { buffer = true })
5656
end
5757

58+
if config.org_highlight_latex_and_related then
59+
vim.bo[vim.b.org_bufnr].syntax = 'ON'
60+
end
61+
5862
vim.b.undo_ftplugin = table.concat({
5963
'setlocal',
6064
'commentstring<',

0 commit comments

Comments
 (0)