treesitter.autotag

Automatically add closing tags for HTML and JSX

Disable

This extra is enabled on a fresh install. Turn it off with :RafiExtras (Spacemx), or remove "treesitter.autotag" from extras in your rafi.json.

Plugins

Source
lua/rafi/extras/treesitter/autotag.lua
-- Automatically add closing tags for HTML and JSX
local pack = require('rafi.pack')

pack.on_event('BufReadPre,BufNewFile', function()
	vim.pack.add({ 'https://github.com/windwp/nvim-ts-autotag' })
	require('nvim-ts-autotag').setup({})
	-- Setup only attaches on FileType, attach buffers already open.
	pack.refire_filetype('nvim_ts_xmltag')
end)