Releases: opa-oz/pug-lsp
v0.1.0
pug-lsp: Pug Language Protocol Server
An implementation of the Language Protocol Server for Pug.js
- Features
- Thanks
Features
pug-lsp
aims to provide suggestions for you to edit .pug
in your editor.
Note
Project is under heavy development. Current functionality can be change in stable release.
Freestyle
Yes, go-to-definition supported
Tags suggestions
Auto suggest list of HTML5 tags.
Attributes suggestions
Auto suggest common attributes (such as style
, class
, title
) for tags
Auto suggest events (such as onclick
, onenter
) for tags
Auto suggest tag-specific attributes (such as href
for a
)
&attributes
snippet
Yes, it's a real feature of Pug
Mixins suggestions
Look through included files and suggest defined mixins!
Doctype
suggestions
PugJS has a pre-defined list of possible doctypes.
Keywords suggestions
case .. when .. default
Pug-LSP simply follows Pug's implementation
Note Case Fall Through
You can use fall through, just as you would in a JavaScript switch statement.
The difference, however, is a fall through in JavaScript happens whenever a break statement is not explicitly included;
in Pug, it only happens when a block is completely missing.
If you would like to not output anything in a specific case, add an explicit unbuffered break snippet: - break
if .. else
Hover reference
Diagnostics
Include
Mixins
Thanks
v0.0.5
Changelog
- 1cc0985 chore: Minor env fix
- f391efa build: goreleaser
- 7a173d7 feat: Includes diagnostic
- 44c17cc feat: Mixins diagnostic
- e2bd930 feat: GoToDefinition - mixins
- 3e6cf0e feat: GoToDefinition - include
- 39c46a4 chore: Clean up
- cbf6ccd feat: CompletionItemResolve
- 0a53475 chore: More tag's descriptions
- 58be073 feat: Attributes desc & tag inline desc
v0.0.4
v0.0.3
Full Changelog: v0.0.2...v0.0.3
Mixins suggestions
Look through included files and suggest defined mixins!
Keywords suggestions
case .. when .. default
Pug-LSP simply follows Pug's implementation
Note Case Fall Through
You can use fall through, just as you would in a JavaScript switch statement.
The difference, however, is a fall through in JavaScript happens whenever a break statement is not explicitly included;
in Pug, it only happens when a block is completely missing.
If you would like to not output anything in a specific case, add an explicit unbuffered break snippet: - break
if .. else
v0.0.2
Doctype
suggestions 🎉
PugJS has a pre-defined list of possible doctypes.
Full Changelog: v0.0.1...v0.0.2
v0.0.1
pug-lsp: Pug Language Protocol Server
An implementation of the Language Protocol Server for Pug.js
Features
pug-lsp
aims to provide suggestions for you to edit .pug
in your editor.
Note
Project is under heavy development. Current functionality can be change in stable release.
Tags suggestions
Auto suggest list of HTML5 tags.
Attributes suggestions
Auto suggest common attributes (such as style
, class
, title
) for tags
Auto suggest events (such as onclick
, onenter
) for tags
Auto suggest tag-specific attributes (such as href
for a
)
&attributes
snippet
Yes, it's a real feature of Pug