[help] How to make autocompletion works in blade? #72
-
First of all, thanks for the amazing work in this plugin. I've spent whole day today setting up my neovim config to work with blade files. Screen.Recording.2024-09-17.at.19.08.24.mp4Everything seems working just fine, until I realize that :
Can anyone guide me regarding above points? Thank you in advance. My config: feryardiant/dotfiles#17 Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hi @feryardiant, and thanks for the kind words! Inertia
Autocompletion.
Workaround for NeoVim?
Hopefully the new extension laravel is developing for vscode is an actual LSP which would resolve it practically for all editors! |
Beta Was this translation helpful? Give feedback.
-
I think I've already got the answer for the autocompletion and the error message, but not the grammar. @EmranMR did you have any plan to add supports for directives from third-party packages? |
Beta Was this translation helpful? Give feedback.
Hi @feryardiant I just pushed the new version with Inertia and Ziggy directives support.
The custom if statements are already supported as long as the third party package, follows the Laravel convention. If there are none-standard directives, they need to be defined by the grammar. For example, Livewire 3 has some directives that are not hardcoded and already supported.
For
keyword
style directives, they all need to be defined manually. There are actually not that many keywords as far as I know, and thankfully it is super easy to extend the grammar. However, dynamic support is fairly impossible, to give you …