question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for template engines (blade, vue, heex, etc)

See original GitHub issue

Hey, this is great, I like it very much.

Have issue though, here’s the thing: You can add filetype in your lsp configuration and that will work, but then this LS defaults to css snippets. So if I add blade or php to nvim lsp file types language server is running but it gives snippets for css.

Maybe it would be better to add configuration option for lsp and allow to add file types separately for css and html snippet functionality.

Many languages use different templates for html so maybe it would be better to default on html rather than css. I didn’t dig too much into the code, but would it be possible to get both work on same file as 2 separate completion items? Html / Vue can mix html and css in one file, so that would be nice to have as well, maybe as an option.

There is somehow related PR #16 that is adding blade support, but there are many more different template engines that I would like to have support for.

I can do PR myself if you are accepting the concept of additional configuration, or enabling both html / css in one file?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:8
  • Comments:5

github_iconTop GitHub Comments

2reactions
pbogutcommented, Dec 8, 2021

If anyone wants to try it here it is: fork and config. I’m happy to split it in bunch of smaller commits if @aca is willing to accept PR with that config change.

1reaction
niklasmohrincommented, Mar 25, 2022

Is there any chance the changes from @pbogut could be merged @aca? Your LS integrates very well into my workflow (thanks a lot for your work!), but unfortunately only CSS snippets are suggested in my django template files. In contrast, the config that @pbogut linked to is the one that I, as a user, would really like to have - it also eliminates all future issues and debate in this matter. For what it is worth, I am running the linked fork and it works without any issues so far

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Vue Alongside Laravels Blade Templating Engine
In this tutorial, we'll go over how to get Vue and Blade to work together ... Firstly, we need to install Vue and...
Read more >
Using Blade inside of a Vue templates properly - Laracasts
Is it possible to use blade functionality inside of a vue template? An example would be if I wanted to create a 'Login-Form'...
Read more >
Vue js component not working in laravel blade file
How to fix this : Wrap your javascript code into a .js file and make sure your loading it just at the bottom...
Read more >
Template Syntax | Vue.js
Vue uses an HTML-based template syntax that allows you to declaratively bind the rendered DOM to the underlying component instance's data. All Vue...
Read more >
Building Vue Components With Pug & Stylus. - Medium
If you're from with a PHP background you would be familiar with the Blade templating engine. These templating libraries basically help you ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found