From f9d019478389677e89b1db210c69f36e4b7d4f8a Mon Sep 17 00:00:00 2001 From: Evan Reichard Date: Fri, 4 Oct 2024 19:41:53 -0400 Subject: [PATCH] add(nvim): templ --- nvim/config/lua/lsp-config.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/nvim/config/lua/lsp-config.lua b/nvim/config/lua/lsp-config.lua index 648477e..4ed475e 100644 --- a/nvim/config/lua/lsp-config.lua +++ b/nvim/config/lua/lsp-config.lua @@ -8,6 +8,12 @@ vim.api.nvim_create_autocmd("FileType", { end, }) +vim.filetype.add({ + extension = { + templ = "templ", + }, +}) + ------------------------------------------------------ -------------------- Built-in LSP -------------------- ------------------------------------------------------ @@ -124,6 +130,13 @@ nvim_lsp.lua_ls.setup({ cmd = { nix_vars.luals }, }) +-- Templ LSP Configuration +nvim_lsp.templ.setup({ + on_attach = on_attach, + flags = lsp_flags, + capabilities = capabilities, +}) + -- Go LSP Configuration nvim_lsp.gopls.setup({ on_attach = function(client, bufnr)