-
Notifications
You must be signed in to change notification settings - Fork 307
Open
Description
Hi,
I am using Polyglot in Neovim. Whenever I open any CSV file, I encounter the following error. However, if I replace the syntax/csv.vim file with the one from this repository, it works without any issues.
Error detected while processing BufNewFile Autocommands for "*":
Error executing lua callback: ...w/Cellar/neovim/0.10.4_1/share/nvim/runtime/filetype.lua:35: Error executing lua: ...w/Cellar/neovim/0.10.4_1/sha
re/nvim/runtime/filetype.lua:36: BufNewFile Autocommands for "*"..FileType Autocommands for "*"..Syntax Autocommands for "*"..function <SNR>15_Syn
Set[26]..script /home/kihong/environment/.vim/plugged/vim-polyglot/syntax/csv.vim[161]..function <SNR>53_CheckSaneSearchPattern, line 37: Vim(let)
:E684: List index out of range: 0
stack traceback:
[C]: in function 'nvim_cmd'
...w/Cellar/neovim/0.10.4_1/share/nvim/runtime/filetype.lua:36: in function <...w/Cellar/neovim/0.10.4_1/share/nvim/runtime/filetype.lua:3
5>
[C]: in function 'nvim_buf_call'
...w/Cellar/neovim/0.10.4_1/share/nvim/runtime/filetype.lua:35: in function <...w/Cellar/neovim/0.10.4_1/share/nvim/runtime/filetype.lua:1
0>
stack traceback:
[C]: in function 'nvim_buf_call'
...w/Cellar/neovim/0.10.4_1/share/nvim/runtime/filetype.lua:35: in function <...w/Cellar/neovim/0.10.4_1/share/nvim/runtime/filetype.lua:1
0>
CSV: No delimiter found. See :h csv-delimiter to set it manually!
Error detected while processing BufNewFile Autocommands for "*.csv"..FileType Autocommands for "*"..function <SNR>1_LoadFTPlugin[20]..script /home
/kihong/environment/.vim/plugged/vim-polyglot/ftplugin/csv.vim[31]..function csv#Init[113]..Syntax Autocommands for "*"..function <SNR>15_SynSet[2
6]..script /home/kihong/environment/.vim/plugged/vim-polyglot/syntax/csv.vim[161]..function <SNR>53_CheckSaneSearchPattern:
line 37:
E684: List index out of range: 0
line 41:
E121: Undefined variable: s:cmts
E116: Invalid arguments for function <sid>Esc
line 42:
E121: Undefined variable: cmts
line 43:
E121: Undefined variable: pattern
E116: Invalid arguments for function search
line 45:
E121: Undefined variable: start
line 50:
E121: Undefined variable: s:cmts
E116: Invalid arguments for function <sid>Esc
Error detected while processing BufNewFile Autocommands for "*.csv"..FileType Autocommands for "*"..function <SNR>1_LoadFTPlugin[20]..script /home
/kihong/environment/.vim/plugged/vim-polyglot/ftplugin/csv.vim[31]..function csv#Init[113]..Syntax Autocommands for "*"..function <SNR>15_SynSet[2
6]..script /home/kihong/environment/.vim/plugged/vim-polyglot/syntax/csv.vim[165]..function <SNR>53_DoHighlight:
line 39:
E121: Undefined variable: s:cmts
Error detected while processing BufNewFile Autocommands for "*.csv"..FileType Autocommands for "*"..Syntax Autocommands for "*"..function <SNR>15_
SynSet[26]..script /home/kihong/environment/.vim/plugged/vim-polyglot/syntax/csv.vim[161]..function <SNR>53_CheckSaneSearchPattern:
line 37:
E684: List index out of range: 0
line 41:
E121: Undefined variable: s:cmts
E116: Invalid arguments for function <sid>Esc
line 42:
E121: Undefined variable: cmts
line 43:
E121: Undefined variable: pattern
E116: Invalid arguments for function search
line 45:
E121: Undefined variable: start
line 50:
E121: Undefined variable: s:cmts
E116: Invalid arguments for function <sid>Esc
Error detected while processing BufNewFile Autocommands for "*.csv"..FileType Autocommands for "*"..Syntax Autocommands for "*"..function <SNR>15_
SynSet[26]..script /home/kihong/environment/.vim/plugged/vim-polyglot/syntax/csv.vim[165]..function <SNR>53_DoHighlight:
line 39:
E121: Undefined variable: s:cmts
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels