add html autotag plugin

This commit is contained in:
Schistos 2024-06-28 13:05:55 +03:00
parent aae88217c3
commit 064e55fe56
2 changed files with 21 additions and 0 deletions

View File

@ -327,6 +327,7 @@ require('lazy').setup({
-- Useful for getting pretty icons, but requires a Nerd Font. -- Useful for getting pretty icons, but requires a Nerd Font.
{ 'nvim-tree/nvim-web-devicons', enabled = vim.g.have_nerd_font }, { 'nvim-tree/nvim-web-devicons', enabled = vim.g.have_nerd_font },
{ 'ThePrimeagen/harpoon' }, { 'ThePrimeagen/harpoon' },
{ 'windwp/nvim-ts-autotag' },
}, },
config = function() config = function()
-- Telescope is a fuzzy finder that comes with a lot of different things that -- Telescope is a fuzzy finder that comes with a lot of different things that

View File

@ -0,0 +1,20 @@
return {
{
-- Also override individual filetype configs, these take priority.
-- Empty by default, useful if one of the "opts" global settings
-- doesn't work well in a specific filetype
'nvim-ts-autotag',
opts = {
-- Defaults
enable_close = true, -- Auto close tags
enable_rename = true, -- Auto rename pairs of tags
enable_close_on_slash = false, -- Auto close on trailing </
},
per_filetype = {
['html'] = {
enable_close = false,
},
},
},
}