From 5bbb8ff4f5dee6a094c7292275dbdfb4d45c9917 Mon Sep 17 00:00:00 2001 From: long Date: Tue, 21 Jan 2025 03:39:46 -0600 Subject: [PATCH] - added handlebars snippets and support - removed tailwind ls --- lua/plugins/config.lua | 4 ++-- snippets/handlebars.snippets | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 snippets/handlebars.snippets diff --git a/lua/plugins/config.lua b/lua/plugins/config.lua index 21e394d..05e4854 100644 --- a/lua/plugins/config.lua +++ b/lua/plugins/config.lua @@ -398,7 +398,7 @@ function M.lsp_zero() "ts_ls", "svelte", "angularls", - "tailwindcss", + --"tailwindcss", "templ", "gopls", "htmx", @@ -416,7 +416,7 @@ function M.lsp_zero() }, }) - local html_filetypes = { "html", "htmldjango", "templ", "glimmer" } + local html_filetypes = { "html", "htmldjango", "templ", "glimmer", "handlebars" } lsp.configure("html", { filetypes = html_filetypes }) lsp.configure("htmx", { filetypes = html_filetypes }) diff --git a/snippets/handlebars.snippets b/snippets/handlebars.snippets new file mode 100644 index 0000000..6aa049e --- /dev/null +++ b/snippets/handlebars.snippets @@ -0,0 +1,11 @@ +snippet inl inline block + {{#*inline "$0"}} + {{/inline}} + +snippet ea each block + {{#each $0}} + {{/each}} + +snippet pb partial block + {{#>$0}} + {{/$0}}