-
Notifications
You must be signed in to change notification settings - Fork 407
Error message when open .Rnw file #759
Copy link
Copy link
Closed
Description
The problem
When open any file with .Rnw as the suffix, neovim will show following error message for a short moment.
"test.Rnw" 5L, 62C
Error detected while processing /usr/local/Cellar/neovim/HEAD-4566f7c/share/nvim/runtime/indent/rnoweb
.vim:
line 13:
E475: Invalid argument: VimtexIndent(v:lnum)
FYI, .Rnw file basically is a combination of normal LaTeX file and R codes.
Step to produce
- Create
test.Rnwfile with following content:
\documentclass{article}
\begin{document}
test
\end{document}- Create
test.vimwith following content:
set nocompatible
let &rtp = '~/.config/nvim/plugged/vimtex,' . &rtp
let &rtp .= ',~/.config/nvim/plugged/vimtex/after'
filetype plugin indent on
syntax enable
- Startup neovim by:
nvim -u test.vim test.Rnw. You will see a flashed error message. In case of message disappearing too quickly, you can run:messto view it.
Other Info
This is tested with the latest neovim running on macOS. If any other information is required, please let me know.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels