folke / twilight.nvim

🌅 Twilight is a Lua plugin for Neovim 0.5 that dims inactive portions of the code you're editing using TreeSitter.
Apache License 2.0
1.24k stars 21 forks source link

Random nvim (nightly) crashes when started in a empty buffer #17

Closed lbiaggi closed 2 years ago

lbiaggi commented 2 years ago

Hi when using with neovim 0.6 release

NVIM v0.6.0-dev+402-g655e489e9
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3

along with

if !exists("g:twilight_autocommands")
     let g:twilight_autocommands=1
     augroup twilight_mode
         autocmd InsertEnter * :TwilightEnable
         autocmd InsertLeave * :TwilightDisable
     augroup END
endif

When creating a new file or empty buffer and trying to enter insert mode, I get a SIGEV in the neovim process, disabling the autocommand snippet resolved my issue. Until few days ago (3 or 4 days), I did not have this kind of problem.

Is this the right place to open the issue?

Regards, Lucas

dj95 commented 2 years ago

I have the same issue with nvim 0.5.0 when nvim is starting with dashboard and I then try to open a file with telescope

dj95 commented 2 years ago

Since I've updated to nvim 0.5.1 the problem seems to be fixed. The recent 0.6 nightly also has a fix for sigsegv in decor_free implemented, that was backlogged to 0.5.1

lbiaggi commented 2 years ago

Since I've updated to nvim 0.5.1 the problem seems to be fixed. The recent 0.6 nightly also has a fix for sigsegv in decor_free implemented, that was backlogged to 0.5.1

Hi, thanks pointing this. Tested again with the most recent nightly build and everything is working as expected.