Skip to content

Releases: opa-oz/pug-lsp

v0.1.0

23 Jun 06:48
Compare
Choose a tag to compare

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.

Freestyle

preview

Yes, go-to-definition supported

Tags suggestions

Auto suggest list of HTML5 tags.

tags-suggestions

Attributes suggestions

Auto suggest common attributes (such as style, class, title) for tags

common-attributes

Auto suggest events (such as onclick, onenter) for tags

events-attributes

Auto suggest tag-specific attributes (such as href for a)

special-attributes

&attributes snippet

Yes, it's a real feature of Pug

attributes-shortcut

Mixins suggestions

Look through included files and suggest defined mixins!

mixins

Doctype suggestions

PugJS has a pre-defined list of possible doctypes.

doctypes

Keywords suggestions

case .. when .. default

Pug-LSP simply follows Pug's implementation

case-suggestions

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
break-suggestion

if .. else

if-suggestion

Hover reference

See full desciption on hover!
hover-reference

Diagnostics

Include

Check if filepath is valid
includes-diag

Mixins

  1. Check if mixin exists (or included)
    mixins-diag

  2. Check if desired arguments passed
    mixin-arguments

Thanks


ko-fi

v0.0.5

23 Jun 04:54
Compare
Choose a tag to compare
v0.0.5 Pre-release
Pre-release

Changelog

v0.0.4

18 Jun 12:02
Compare
Choose a tag to compare

Hover reference

See full desciption on hover!
hover-reference

Full Changelog: v0.0.3...v0.0.4

v0.0.3

16 Jun 12:14
Compare
Choose a tag to compare

Full Changelog: v0.0.2...v0.0.3

Mixins suggestions

Look through included files and suggest defined mixins!

mixins

Keywords suggestions

case .. when .. default

Pug-LSP simply follows Pug's implementation

case-suggestions

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
break-suggestion

if .. else

if-suggestion

v0.0.2

10 Jun 10:13
Compare
Choose a tag to compare

Doctype suggestions 🎉

PugJS has a pre-defined list of possible doctypes.

doctypes

Full Changelog: v0.0.1...v0.0.2

v0.0.1

09 Jun 02:52
Compare
Choose a tag to compare

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.

tags-suggestions

Attributes suggestions

Auto suggest common attributes (such as style, class, title) for tags

common-attributes

Auto suggest events (such as onclick, onenter) for tags

events-attributes

Auto suggest tag-specific attributes (such as href for a)

special-attributes

&attributes snippet

Yes, it's a real feature of Pug

attributes-shortcut

Thanks


ko-fi