Auto Close/Rename tags
This commit is contained in:
		
							parent
							
								
									a9b0532e78
								
							
						
					
					
						commit
						aecb6ae46b
					
				
							
								
								
									
										4
									
								
								init.lua
								
								
								
								
							
							
						
						
									
										4
									
								
								init.lua
								
								
								
								
							| 
						 | 
					@ -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`
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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',
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
		Reference in New Issue