Yggdroot / indentLine

A vim plugin to display the indention levels with thin vertical lines
MIT License
4.13k stars 227 forks source link

Neovim 0.8.0: Error detected while processing BufWinEnter Autocommands #380

Open laanhdo opened 1 year ago

laanhdo commented 1 year ago

Error detected while processing BufWinEnter Autocommands for "*"..function 139_Setup[6]..139_IndentLinesEnable[10]..139_SetConcealOption: line 8:

sriharshachilakapati commented 1 year ago

Check if your init.vim has something like this:

let g:indentLine_concealcursor = 0

Earlier NeoVim versions used to ignore this but now this is an issue since error is being reported. Correct should be having a string with characters only comprising of 'i, n, c and v'

AravindVasudev commented 1 year ago

I'm facing the same issue with vim 9.0 homebrew build.

➜  ~ vim --version
VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Nov 09 2022 23:55:52)
macOS version - arm64
Included patches: 1-850
Compiled by Homebrew
Huge version without GUI.  Features included (+) or not (-):
+acl               +file_in_path      +mouse_urxvt       -tag_any_white
+arabic            +find_in_path      +mouse_xterm       -tcl
+autocmd           +float             +multi_byte        +termguicolors
+autochdir         +folding           +multi_lang        +terminal
-autoservername    -footer            -mzscheme          +terminfo
-balloon_eval      +fork()            +netbeans_intg     +termresponse
+balloon_eval_term +gettext           +num64             +textobjects
-browse            -hangul_input      +packages          +textprop
++builtin_terms    +iconv             +path_extra        +timers
+byte_offset       +insert_expand     +perl              +title
+channel           +ipv6              +persistent_undo   -toolbar
+cindent           +job               +popupwin          +user_commands
-clientserver      +jumplist          +postscript        +vartabs
+clipboard         +keymap            +printer           +vertsplit
+cmdline_compl     +lambda            +profile           +vim9script
+cmdline_hist      +langmap           -python            +viminfo
+cmdline_info      +libcall           +python3           +virtualedit
+comments          +linebreak         +quickfix          +visual
+conceal           +lispindent        +reltime           +visualextra
+cryptv            +listcmds          +rightleft         +vreplace
+cscope            +localmap          +ruby              +wildignore
+cursorbind        +lua               +scrollbind        +wildmenu
+cursorshape       +menu              +signs             +windows
+dialog_con        +mksession         +smartindent       +writebackup
+diff              +modify_fname      -sodium            -X11
+digraphs          +mouse             +sound             -xfontset
-dnd               -mouseshape        +spell             -xim
-ebcdic            +mouse_dec         +startuptime       -xpm
+emacs_tags        -mouse_gpm         +statusline        -xsmp
+eval              -mouse_jsbterm     -sun_workshop      -xterm_clipboard
+ex_extra          +mouse_netterm     +syntax            -xterm_save
+extra_search      +mouse_sgr         +tag_binary        
-farsi             -mouse_sysmouse    -tag_old_static    

Error message:

Error detected while processing BufWinEnter Autocommands for "*"..function <SNR>80_Setup[6]..<SNR>80_IndentLinesEnable[10]..<SNR>80_SetConcealOption:

I tried removing indentLine configs based on https://github.com/vim/vim/issues/10128#issuecomment-1093943851 but that doesn't seem to help. The only fix is removing indentLine completely.

My .vimrc config for reference: https://github.com/AravindVasudev/dotfiles/blob/main/vimrc

haug1 commented 1 year ago

Thanks. Changing

let g:indentLine_concealcursor = 0

to

let g:indentLine_concealcursor = ""

in ~/.vimrc fixed it for me