Auto Close/Rename tags

This commit is contained in:
Mohammad Moosazadeh 2024-06-02 00:08:07 -04:00
parent a9b0532e78
commit aecb6ae46b
2 changed files with 19 additions and 0 deletions

View File

@ -858,6 +858,10 @@ require('lazy').setup({
additional_vim_regex_highlighting = { 'ruby' }, additional_vim_regex_highlighting = { 'ruby' },
}, },
indent = { enable = true, disable = { 'ruby' } }, indent = { enable = true, disable = { 'ruby' } },
autotag = {
enable = true,
filetypes = { 'html', 'xml', 'javascriptreact', 'typescriptreact' },
},
}, },
config = function(_, opts) config = function(_, opts)
-- [[ Configure Treesitter ]] See `:help nvim-treesitter` -- [[ Configure Treesitter ]] See `:help nvim-treesitter`

View File

@ -0,0 +1,15 @@
return {
'windwp/nvim-ts-autotag',
dependencies = 'nvim-treesitter/nvim-treesitter',
config = function()
require('nvim-ts-autotag').setup {
opts = {
enable_close = true,
enable_rename = true,
enable_close_on_slash = true,
},
}
end,
lazy = true,
event = 'VeryLazy',
}