add autotag plugin

This commit is contained in:
Akos Horvath 2023-09-24 22:22:08 +02:00
parent c3ab81018a
commit c2834033b0
2 changed files with 9 additions and 3 deletions

View File

@ -142,8 +142,12 @@ end
-- See `:help nvim-treesitter` -- See `:help nvim-treesitter`
require('nvim-treesitter.configs').setup { require('nvim-treesitter.configs').setup {
-- Add languages to be installed here that you want installed for treesitter -- Add languages to be installed here that you want installed for treesitter
ensure_installed = { 'c', 'cpp', 'rust', 'go', 'lua', 'python', 'rust', 'typescript', 'help', 'vim' }, ensure_installed = { 'c', 'cpp', 'rust', 'go', 'lua', 'python', 'rust', 'typescript', 'tsx', 'help', 'vim', },
autotag = {
enable = true,
enable_close = true,
enable_close_on_slash = true,
},
highlight = { enable = true }, highlight = { enable = true },
indent = { enable = true, disable = { 'python', 'c', 'cpp' } }, indent = { enable = true, disable = { 'python', 'c', 'cpp' } },
incremental_selection = { incremental_selection = {

View File

@ -14,7 +14,7 @@ require('packer').startup({function(use)
use { use {
-- Useful status updates for LSP -- Useful status updates for LSP
'j-hui/fidget.nvim', 'j-hui/fidget.nvim',
branch = 'legacy', -- branch = 'legacy',
} }
use { -- LSP Configuration & Plugins use { -- LSP Configuration & Plugins
@ -42,6 +42,8 @@ require('packer').startup({function(use)
end end
} }
use "windwp/nvim-ts-autotag"
use { use {
'phaazon/hop.nvim', 'phaazon/hop.nvim',
branch = 'v2', -- optional but strongly recommended branch = 'v2', -- optional but strongly recommended