blob: b09dc3cca584fdb49ddcd5550db148bc13be29db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
-- add language support for handlebars (.hbs)
return {
-- glimmer is the treesitter parser for handlebars
-- see https://github.com/nvim-treesitter/nvim-treesitter
{
"nvim-treesitter/nvim-treesitter",
opts = { ensure_installed = { "glimmer" } },
},
-- we can use djLint to format handlebars
{
"stevearc/conform.nvim",
opts = {
formatters_by_ft = {
handlebars = { "djlint" },
},
formatters = {
djlint = {
prepend_args = { "--preserve-blank-lines" },
},
},
},
},
}
|