LALI Components is a Neovim plugin for autocompletion of Laravel
and Livewire components by community member Ricardo
Ramirez. It offers component navigation using gf
,
prompting you to choose the component when more than one exists, as
well as autocompletion using nvim-cmp:
1. Navigating to Components with gf
Using the gf command on certain component names in your code will open the corresponding component file. This feature works with the following patterns:
<x-name>
@extends('name')
@include('name')
<livewire:name>
@livewire('name')
2. Autocompletion with nvim-cmp
When using the Neovim completion plugin (nvim-cmp), suggestions for relevant components will appear as you type the following prefixes:
<x-
@extends
@include
<live
@livewire
You can learn more about this plugin, get full installation instructions, and view the source code on GitHub. If you are new to Neovim, learn how to master using Neovim as a PHP and JavaScript IDE.
The post Neovim Plugin to for Navigating Laravel and Livewire Components appeared first on Laravel News.
Join the Laravel Newsletter to get all the latest Laravel articles like this directly in your inbox.
Read more https://laravel-news.com/neovim-laravel-livewire-plugin