From 0b02a0893058688df6b8d78870dc337eaba93415 Mon Sep 17 00:00:00 2001 From: long Date: Thu, 26 Sep 2024 23:24:53 -0500 Subject: [PATCH] updated tsserver to ts_ls, added handlebars stuff --- lua/plugins/config.lua | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/lua/plugins/config.lua b/lua/plugins/config.lua index 1068b22..f3af4f1 100644 --- a/lua/plugins/config.lua +++ b/lua/plugins/config.lua @@ -205,6 +205,7 @@ function M.nvim_treesitter() "html", "query", "bash", + "glimmer", }, highlight = { enable = true, @@ -394,20 +395,20 @@ function M.lsp_zero() "bashls", "html", "cssls", - "tsserver", + "ts_ls", "svelte", "angularls", "tailwindcss", - --"templ", - --"gopls", - --"htmx", + "templ", + "gopls", + "htmx", }) lsp.configure("pyright", { root_dir = lsp_config_defaults().root_dir, }) - lsp.configure("tsserver", { + lsp.configure("ts_ls", { settings = { implicitProjectConfiguration = { checkJs = true, @@ -415,13 +416,10 @@ function M.lsp_zero() }, }) - lsp.configure("html", { - filetypes = { "html", "htmldjango", "templ" }, - }) + local html_filetypes = { "html", "htmldjango", "templ", "glimmer" } - lsp.configure("htmx", { - filetypes = { "html", "htmldjango", "templ" }, - }) + lsp.configure("html", { filetypes = html_filetypes }) + lsp.configure("htmx", { filetypes = html_filetypes }) require("mason-lspconfig").setup_handlers({ ["rust_analyzer"] = function() end, @@ -449,8 +447,10 @@ function M.undotree() end function M.luasnip() - require("luasnip").filetype_extend("htmldjango", { "html" }) - require("luasnip").filetype_extend("templ", { "html" }) + local luasnip = require("luasnip") + luasnip.filetype_extend("htmldjango", { "html" }) + luasnip.filetype_extend("templ", { "html" }) + luasnip.filetype_extend("handlebars", { "html" }) require("luasnip.loaders.from_snipmate").load() end