neorg
neorg copied to clipboard
Norg hightlighting lost in presenter
Prerequisites
- [X] I am using either 0.7 stable with the
0.0.12
tag or the latest compiled Neovim version - [X] I am using the latest version of the plugin
Neovim Version
NVIM v0.9.0-dev-162+g40791f8e8 Build type: RelWithDebInfo LuaJIT 2.1.0-beta3
Neorg setup
require('neorg').setup({
load = {
['core.defaults'] = {},
['core.norg.concealer'] = {},
['core.presenter'] = {
config = {
zen_mode = 'zen-mode',
},
},
['core.norg.dirman'] = {
config = {
workspaces = {
presentations = '~/Documents/presentations',
},
},
},
},
})
Actual behavior
https://user-images.githubusercontent.com/8384983/198295775-4d3450d8-64e1-4722-9437-726cbd8005d5.mp4
When starting presenter, the filetype of the zen buffer isn't set so there is not syntax highlighting. Manually setting the filetype fixes it but it's annoying to have to do it every time.
Expected behavior
filetype
of the buffer should be set to norg
so the presentation is highlighted correctly
Steps to reproduce
Running this presentation has the issue, at least on my machine:
@document.meta
title: Message Scheduler
@end
* Message Scheduler
Slide #1
@code go
v := fmt.Sprintf("")
@end
** Test
Hi
* Slide 2
Hi
Potentially conflicting plugins
None I can think of
Other information
No response
Help
No response
Implementation help
No response
@itmecho I am on NVIM v0.9.2 and on Neorg v6.0.0 and my zen-mode presenter does not have this issue anymore
Should we close this issue?