extensions icon indicating copy to clipboard operation
extensions copied to clipboard

Nunjucks / .njk Language Support

Open hejchristiandev opened this issue 10 months ago • 5 comments

Check for existing issues

  • [X] Completed

Language

Nunjucks

Tree Sitter parser link

No response

Language server link

No response

Misc notes

I would love to see .njk support, that is the main thing that's keeping me on VS Code for now - I develop a lot of sites with 11ty and use .njk as my main templating language.

hejchristiandev avatar Jan 01 '25 11:01 hejchristiandev

Same! I’m a big fan of Zed but would love to see Nunjucks support, too.

robinrendle avatar Jan 21 '25 02:01 robinrendle

Agreed

dimitrieh avatar Mar 21 '25 14:03 dimitrieh

I'm using the Jinja2 extension as a workaround until Nunjucks is supported. It works fairly well. Here's what I added to my settings:

  "file_types": {
    "Jinja2": ["*.html", "*.njk"]
  }

bdielman avatar Mar 28 '25 02:03 bdielman

Deffo need this added to Zed! Critical for 11ty projects.

JDENredden avatar May 05 '25 22:05 JDENredden

I've started building out an extension based on an incomplete grammar

The grammar is still missing support for front-matter, raw blocks, and comments. I'm also not getting proper HTML support yet — any help on these would be appreciated!

stormwarning avatar Jul 29 '25 02:07 stormwarning