Have you tried some of the local ai plugins for neovim? You can specify the model and then maybe use it to help with editing? I'm sure it's not as smooth as whatever magical Mac thing OP is referencing.