diff --git a/init.lua b/init.lua index d1b890f..dc715a6 100644 --- a/init.lua +++ b/init.lua @@ -142,8 +142,12 @@ end -- See `:help nvim-treesitter` require('nvim-treesitter.configs').setup { -- 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 }, indent = { enable = true, disable = { 'python', 'c', 'cpp' } }, incremental_selection = { diff --git a/lua/plugin.lua b/lua/plugin.lua index 9930dd2..ac586ce 100644 --- a/lua/plugin.lua +++ b/lua/plugin.lua @@ -14,7 +14,7 @@ require('packer').startup({function(use) use { -- Useful status updates for LSP 'j-hui/fidget.nvim', - branch = 'legacy', + -- branch = 'legacy', } use { -- LSP Configuration & Plugins @@ -42,6 +42,8 @@ require('packer').startup({function(use) end } + use "windwp/nvim-ts-autotag" + use { 'phaazon/hop.nvim', branch = 'v2', -- optional but strongly recommended