lawrence-laz / neotest-zig

Test runner for Zig in Neovim using Neotest backend.
MIT License
27 stars 7 forks source link

Fix flatten deprecation #34

Closed alisonjenkins closed 1 month ago

alisonjenkins commented 1 month ago

Nightly Neovim is stating this in checkhealth:

- WARNING vim.tbl_flatten is deprecated. Feature will be removed in Nvim 0.13
  - ADVICE:
    - use vim.iter(…):flatten():totable() instead.
    - stack traceback:
        /nix/store/7f1x0q2jggqznnpkv9ppl307d5p91svk-vim-pack-dir/pack/myNeovimPackages/start/neotest-zig/lua/neotest-zig/init.lua:45
        /nix/store/7f1x0q2jggqznnpkv9ppl307d5p91svk-vim-pack-dir/pack/myNeovimPackages/start/neotest-zig/lua/neotest-zig/init.lua:79
        [C]:-1
        /nix/store/ysncr3qa9xzqs4k70i1a0c96rqppv40n-init.lua:0

This commit applies the suggested fix.

lawrence-laz commented 1 month ago

Thanks! I pushed a change that maintains compatibility with older versions, could you check that everything works on your side?

alisonjenkins commented 1 month ago

Thanks! I pushed a change that maintains compatibility with older versions, could you check that everything works on your side?

Just tested it and I can confirm that works fine my end on Neovim nightly.