Replies: 3 comments 1 reply
-
Make sure your file type is detected as vim.filetype.add({ extension = { ejs = "ejs" } }) |
Beta Was this translation helpful? Give feedback.
-
I tried to set filetype to In
If I rename file to |
Beta Was this translation helpful? Give feedback.
-
Add this line to your init.lua or init.vim it will apply HTML syntax highlighting and other related settings to .ejs files. For VimScript (init.vim): au BufNewFile,BufRead *.ejs set filetype=html For Lua (init.lua): vim.cmd('autocmd BufNewFile,BufRead *.ejs set filetype=html') |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am trying to make ejs files work for prettier. I saw in the documentation that it is possible to supply extra file types.
This is my config:
Can someone help me out?
Beta Was this translation helpful? Give feedback.
All reactions