Formatting njk files by printer or other solution #4452
Unanswered
mr-scrpt
asked this question in
Q&A - Ask for help with problems
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all. I want to set up a formatting pritter there so that my nunjucks files are formatted as html files. Trying several options, for example I have this setting
vim.cmd('au BufRead,BufNewFile *.njk set filetype=html')
or
vim.cmd('au BufRead,BufNewFile *.njk set filetype=htmldjango')
In the first case I get no formatting and get an error
In the second case, there is no error, but no formatting, although the same file but with the extension html is formatted without problems and has no error
I tried experimenting with the settings but it did not help me
Please tell me how I can get this to work.
Beta Was this translation helpful? Give feedback.
All reactions