-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add initial implementation #1
Conversation
README.md
Outdated
|
||
### Installation | ||
|
||
* Install [LSP](https://packagecontrol.io/packages/LSP) and `LSP-twiggy` via Package Control. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a step to install the Twig Syntax here -> https://packagecontrol.io/packages/Twig.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
I don't know how important that functionality is but I see that the VSCode extension has client-side logic to request (additional?) completions from the server for the virtual |
Co-authored-by: Предраг Николић <[email protected]>
Haven’t seen any issues with this, all other buggy stuff has already been submitted as issue by me or someone else, so maybe this will also be addressed as part of making language server more non-VS Code friendly. |
I've submitted moetelo/twiggy#54 btw (unrelated to my previous comment). To make file watching work for now, you can manually register it - see https://github.com/sublimelsp/LSP-eslint/blob/356d5b3d0ff86647481f9bebf37185804e5ca1d4/LSP-eslint.sublime-settings#L128-L134 |
I believe this functionality just makes sure that HTML-specific completions are provided when outside of twig templates. |
That's correct. The purpose of the entire By "HTML context," I mean:
<div> | </div> By "Twig context," I mean:
<div>{{ | }}</div> |
I see. That's very VSCode-specific approach. Ideally the server would bundle the html service and utilize that directly. But oh well, it doesn't seem essential. (In theory one can run both LSP-html and LSP-twiggy at the same time but I suppose that might create unnecessary completions within context of interpolations) |
@niksy can you make that change in the mean time? |
@rchl done! |
As per sublimelsp/repository#124, this PR adds initial implementation for language server.