add html autotag plugin
This commit is contained in:
		
							parent
							
								
									aae88217c3
								
							
						
					
					
						commit
						064e55fe56
					
				
							
								
								
									
										1
									
								
								init.lua
								
								
								
								
							
							
						
						
									
										1
									
								
								init.lua
								
								
								
								
							|  | @ -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 | ||||||
|  |  | ||||||
|  | @ -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, | ||||||
|  |       }, | ||||||
|  |     }, | ||||||
|  |   }, | ||||||
|  | } | ||||||
		Loading…
	
		Reference in New Issue