Closed tonyxwz closed 5 months ago
Before
After
Hmm, can't reproduce on my end. Is it just the spell checker which is leading you to the conclusion?
i.e. does lua print(vim.bo.filetype)
return text
or help
?
I take it the spell checker doesn't activate on other help files? And you're fully up to date with neovim / plugin versions?
That all being said, it's good practice to include the modeline anyway, and can't do any harm @kabouzeid ?
This is how Neovim detects help files
https://github.com/neovim/neovim/blob/93c55c238f4c1088da4dc6ec80103eb3ef4085d2/runtime/lua/vim/filetype/detect.lua#L1561-L1563
does lua print(vim.bo.filetype) return text
It prints text
Without this modeline, when I run
:help zk-zk-nvim
, the filetype is txt (text), not help.