Skip to content
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

.njk (Nunjucks) support? #297

Open
antgel opened this issue Jun 21, 2023 · 1 comment
Open

.njk (Nunjucks) support? #297

antgel opened this issue Jun 21, 2023 · 1 comment
Labels

Comments

@antgel
Copy link

antgel commented Jun 21, 2023

Hi and thanks for this great plugin. I took the liberty of not filling in the template because I suspect the "bug" might be PBKAC. The plugin works great on *.html files, however when I load *.njk (Nunjucks) files, it doesn't load. Is this a bug or a feature, and if the latter, how do I enable the plugin?

I would be happy for the plugin to be active "only" on HTML tags for now, the Nunjucks {{ }} delimiters tend to be short hence the plugin is less relevant.

(Been using vi(m) for 30 years and only now am I starting to get to grips with Lua etc 🤦‍♂️ )

@antgel antgel added the bug label Jun 21, 2023
@andymass
Copy link
Owner

andymass commented Jul 3, 2023

You should be able to get something simple working via

au FileType nunjucks let b:match_words = matchup#util#standard_html()
au BufNewFile,BufRead *.njk setf nunjucks

In your config, although I didn't test it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants