Neovim Plugin to for Navigating Laravel and Livewire Components
Published on by Paul Redmond
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:
gf
1. Navigating to Components with 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')
nvim-cmp
2. Autocompletion with 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.