A lightweight Neovim plugin that adds a :Laravel command for easy access to Artisan and Composer tasks.
- Neovim 0.8+
laravel.nvim supports all the usual plugin managers
🔗 lazy.nvim
{
"djaruun/laravel.nvim",
config = true,
}
Full config example for lazy.nvim
{
"djaruun/laravel.nvim",
config = true,
}
In Laravel projects, do :Laravel
and then your favorite php artisan
command. It supports php artisan
commands at the top-level and namespaces composer
commands under composer:
.
:Laravel composer:dev
:Laravel serve
:Laravel make:component Button
At the moment there is no configuration options available. It should just work out of the box. If there are any options you would like or it doesn't work like it should, please feel free open an issue in the repository!
Basically, all it does is run term php artisan <command>
or term composer <command>
for you and generates command completions from the available commands from artisan
and composer
using <php artisan/composer> list --format=json --short
.