Open poetaman opened 3 years ago
Error detected while processing /Users/reportaman/.vim/plugged/neomutt.vim/syntax/neomuttrc.vim: line 467:
Argh! Sorry about that. Fixed. Thanks
@flatcap Wow, that's fast! :) Btw, I have updated the bug with another problem, don't know if its related... Will test in some time.
Also I do not get any syntax coloring while opening files with name
<filename>.neomuttrc
The syntax is enabled by a condition in ftdetect/neomuttrc.vim. It lists some file names that are likely to be neomutt config: https://github.com/neomutt/neomutt.vim/blob/15b06057a75e5b648b1c1c692c870bc7f052d0c9/ftdetect/neomuttrc.vim#L1
You can always force the issue by adding a vim 'modeline' to the beginning or end of your config file:
# vim: syn=neomuttrc
Wow, that's fast!
Luck. You just caught me before bed :-)
Error detected while processing /opt/homebrew/Cellar/neovim/HEAD-ad98b84/share/nvim/runtime/plugin/rplugin.vim[65]..function
75_LoadRemotePlugins[1].. 75_GetManifest[1]. . 75_GetManifestPath: line 7: E117: Unknown function: stdpath
Hmm... I don't understand this one -- I don't think it's NeoMutt-related.
I see the same file, rplugin.vim
, in my NeoVim install and it contains a stdpath
call.
According to :help stdpath
it's a built-in function.
@flatcap Thanks a lot! Now I see some lines with white on red background, which I guess is for errors?
Similarly:
for line:
set index_format=" %zs %zc %zt | %-28.28L %?X?& ? %.46s %?M10?(%1M)&? %> %{!%a %d %h %H:%M} "
Also, I figured out the reason why I got: E117: Unknown function: stdpath
. That's because my default editor is vim. And given I had neomutt instance running inside neovim, it tried to open vim inside neovim. I always get that error when I try to open a vim instance inside neovim. So I changed my .vimrc to make sure that I open neomutt with editor nvim inside nvim, and I no longer get that problem.
The first block seem to be a limitation of our syntax highlighting (it's fiendishly complicated :-) Quoting the pattern works around that:
color index color142 color234 "~N"
Changing the format of the conditionals, to use the format %<VAR?TRUE&FALSE>
works:
set index_format=" %zs %zc %zt | %-28.28L %<X?& > %.46s %<M10?(%1M)&> %> %{!%a %d %h %H:%M} "
More details about that here: https://neomutt.org/feature/nested-if (but it's a hard read)
Hi, I get following error while trying to open file
~/.config/neomutt/neomuttrc
System information:
Also I do not get any syntax coloring while opening files with name
<filename>.neomuttrc
, though file.neomuttrc
(without prefix<filename>
) is colored. What extensions does this color theme apply to?Also while trying to compose email from an instance neomutt running inside terminal inside neovim, I get the following error: