feat: nvim-ts-autotag

This commit is contained in:
punkfairie 2024-12-08 15:10:09 -08:00
parent f40dd25075
commit d6f73008cb
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696
3 changed files with 13 additions and 0 deletions

View file

@ -58,6 +58,7 @@ with final.pkgs.lib; let
# Treesitter # Treesitter
nvim-treesitter-textobjects nvim-treesitter-textobjects
nvim-ts-autotag
(nvim-treesitter.withPlugins ( (nvim-treesitter.withPlugins (
plugins: plugins:
with plugins; [ with plugins; [

View file

@ -3,4 +3,5 @@ local req = MarleyVim.local_require('plugins.treesitter')
return { return {
req('nvim-treesitter-textobjects'), req('nvim-treesitter-textobjects'),
req('nvim-treesitter'), req('nvim-treesitter'),
req('nvim-ts-autotag'),
} }

View file

@ -0,0 +1,11 @@
return {
'nvim-ts-autotag',
event = { 'BufReadPost', 'BufWritePost', 'BufNewFile' },
after = function()
require('nvim-ts-autotag').setup({
opts = {
enable_close_on_slash = true,
},
})
end,
}