nvim-neotest / neotest

An extensible framework for interacting with tests within NeoVim.
MIT License
2.44k stars 123 forks source link

[BUG] Running colorscheme after running setup removes highlight information. #91

Closed yuki-yano closed 2 years ago

yuki-yano commented 2 years ago

NeoVim Version $ nvim --version NVIM v0.8.0-dev-2317-g5e98a4187 Build type: Release LuaJIT 2.1.0-beta3

Describe the bug

After setup in init.vim, setting colorschema will remove highlight I think it is correct to execute the following code in the ColorSchema event as well https://github.com/nvim-neotest/neotest/blob/d018868c1abe79bf730c9acbbcdaa58ebec8d1f4/lua/neotest/config/init.lua#L3-L20

To Reproduce

call plug#begin('~/.vim/plugged')
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-treesitter/nvim-treesitter'
Plug 'antoinemadec/FixCursorHold.nvim'
Plug 'nvim-neotest/neotest'
Plug 'haydenmeade/neotest-jest'
call plug#end()

lua << EOF
require("neotest").setup({
  adapters = {
    require("neotest-jest")
  }
})
EOF

Steps to reproduce the behavior:

Expected behavior

Highlight is reconfigured when running colorscheme.

rcarriga commented 2 years ago

This should be working as expected in master :smile: