summaryrefslogtreecommitdiff
path: root/dot-config/nvim-old/lua/plugins/handlebars.lua
diff options
context:
space:
mode:
authorJosé Juan Loeza Sierra <jj@xz6ze.com>2025-11-07 23:42:52 -0800
committerJosé Juan Loeza Sierra <jj@xz6ze.com>2025-11-07 23:53:00 -0800
commit5dc89fe9789701abbe4a73c2998d397a6d7d964c (patch)
treecf43ae482b0c2bbfabd3370faf127a4e21a21086 /dot-config/nvim-old/lua/plugins/handlebars.lua
parent617c3b29dbf03322ef3ccb0cd9663532e94adb68 (diff)
replace lazyvim with custom config
Diffstat (limited to 'dot-config/nvim-old/lua/plugins/handlebars.lua')
-rw-r--r--dot-config/nvim-old/lua/plugins/handlebars.lua26
1 files changed, 26 insertions, 0 deletions
diff --git a/dot-config/nvim-old/lua/plugins/handlebars.lua b/dot-config/nvim-old/lua/plugins/handlebars.lua
new file mode 100644
index 0000000..b09dc3c
--- /dev/null
+++ b/dot-config/nvim-old/lua/plugins/handlebars.lua
@@ -0,0 +1,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" },
+ },
+ },
+ },
+ },
+}