Artisan Tinker in Vim with Tinkeray
Vim Tinkeray is a plugin that adds Artisan tinker support to Vim with output in Ray, the desktop debugger app by Spatie. This works by installing a Vim plugin and Laravel Ray in your project.
Tinkeray for Neovim now runs asyncronously, so longer queries, etc. don’t block your editor 💪
For those that don’t know, Tinkeray lets you `artisan tinker` from a Vim buffer with output in Ray by @spatie_be 🖤https://t.co/je7s1Pavos
— Elwin Ransom (@jesseleite85) July 25, 2022
While working in Vim, you can run
TinkerayOpen to open a
tinkeray.php file in your project. When you save the tinkeray.php file, you should see the returned output in the Ray desktop app:
Tinkeray also supports Laravel Sail; check out the Laravel Sail Tinkeray setup in the readme. You can learn more about this plugin, get setup instructions, and view the source code on GitHub at jesseleite/vim-tinkeray.
Credit: Source link