jdhao / nvim-config

A modern Neovim configuration with full battery for Python, Lua, C++, Markdown, LaTeX, and more...
MIT License
3.54k stars 525 forks source link

error for autocmd: cursor position outside buffer #328

Closed jdhao closed 2 months ago

jdhao commented 2 months ago

Sometimes, I see the following error when running nvim:

Error executing vim.schedule lua callback: /Users/xxxxx/.config/nvim/lua/custom-autocmd.lua:166: Cursor position outside buffer