Skip to content

A lightweight Neovim plugin that adds a :Laravel command for easy access to Artisan and Composer tasks.

License

Notifications You must be signed in to change notification settings

DJARUUN/laravel.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravel.nvim

A lightweight Neovim plugin that adds a :Laravel command for easy access to Artisan and Composer tasks.

⚡ Requirements

  • Neovim 0.8+

📦 Installation

laravel.nvim supports all the usual plugin managers

🔗 lazy.nvim
{
  "djaruun/laravel.nvim",
  config = true,
}

🔌 Quick start

Full config example for lazy.nvim
{
  "djaruun/laravel.nvim",
  config = true,
}

🚀 Usage

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:.

Example of starting the dev server using composer's dev script:

:Laravel composer:dev

The same example using artisan's serve:

:Laravel serve

Example of generating a component:

:Laravel make:component Button

🔧 Configuration

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!

⚙️ Technical overview

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.

💫 Star History

Star History Chart

About

A lightweight Neovim plugin that adds a :Laravel command for easy access to Artisan and Composer tasks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages