From b560501d1ee5ee04083e5b2b7f4f5890d1f612c3 Mon Sep 17 00:00:00 2001 From: "Gustavo L de Mello (Guz)" Date: Sun, 8 Dec 2024 10:24:53 -0300 Subject: [PATCH] feat(ide): html tag autoclosing --- lua/dot013/plugins/ide.lua | 13 +++++++++++++ neovim.nix | 1 + 2 files changed, 14 insertions(+) diff --git a/lua/dot013/plugins/ide.lua b/lua/dot013/plugins/ide.lua index 030b43b..46fa44d 100644 --- a/lua/dot013/plugins/ide.lua +++ b/lua/dot013/plugins/ide.lua @@ -167,4 +167,17 @@ return { require("nvim-autopairs").setup() end, }, + + -- Auto closing and renaming tags + { + "nvim-ts-autotag", + event = { "BufReadPre", "BufNewFile" }, + after = function() + require("nvim-ts-autotag").setup({ + aliases = { + ["templ"] = "html", + }, + }) + end, + }, } diff --git a/neovim.nix b/neovim.nix index 1c3422b..24b5360 100644 --- a/neovim.nix +++ b/neovim.nix @@ -42,6 +42,7 @@ nvim-dap-go nvim-dap-ui nvim-dap-virtual-text + nvim-ts-autotag nvim-web-devicons telescope-nvim telescope-fzf-native-nvim