Can I create plugins for Sublime Text 3/4 in a language other than python, for example C++?
If so, how?
You can write a python plugin that uses code written in C++ but you can’t directly write plugins in C++.
Yes, but I don’t know python very well. Is it possible to write C++ code that will call python code and make ST see this plugin (. cpp)?
Kind of. Sublime Text will not load a plugin written in C++, but you can make a python plugin load a compiled C++ library. See https://docs.python.org/3/extending/extending.html
I’ve tried this, but this method requires writing a lot of python code.
How else can I minimize the size of python code?