Source control: what files/folders to include

My development environment is Arduino using Sketchbook location. Raspberry Pi RP2040 is the controller.
The Sketchbook location holds the source files (.ino and .h), and also the libraries folder.
I want to put the whole workspace including source files and also libraries under version control.
However the number of files and folders are quite high, so I want only to put all necessary files and folders under version control.
Which can I delete without problems?

You probably don’t need to put the libraries under version control. I’d recommend listing the library versions used in a readme
As for LVGL, you could put your lv_conf.h under version control.

Another option would be switching to PlatformIO, the libraries used are project based meaning you can have specific version of a library unlike Arduino which uses a single libraries folder for all your projects