Neovim LSP hal.h not found

I have a Arduino ESP32 and I am trying to get LSP with neovim working

I followed (and wrote) this guide:
ironlungx/nvim-pio

this is my neovim config if it helps
ironlungx/nvim-config

It fixed a lot of errors, but there are still many errors…

i opened the same project in vscode, and there are no errors

I don’t know if it is relevant but I’m on nixos, I’ve also tested it with arch linux and it gives the same errors