Closed nyngwang closed 3 years ago
check read me it need treesitter loading first
Thanks! Exactly what you said.
How to ensure the treesitter loading first?
@issadarkthing: Try packer.nvim requires
~
It doesn't work. This is my current setup for nvim-ts-autotag
use {
'windwp/nvim-ts-autotag',
opt = true,
ft = 'typescriptreact',
requires = {{'nvim-treesitter/nvim-treesitter'}},
config = function() require('nvim-ts-autotag').setup() end,
}
@issadarkthing: I was busying clean out issues. Then you can try mine, which has to work :)
use {
'windwp/nvim-ts-autotag',
branch = 'main',
requires = {
'nvim-treesitter/nvim-treesitter',
},
config = function ()
require('nvim-ts-autotag').setup()
end
}
If you still have problem try delete rm -rf ~/.local/share/nvim/site/pack/packer/start/
and then install all your plugins again.
The error is gone now but it still doesn't auto-complete
@issadarkthing: I think the problem is on 'nvim-treesitter/nvim-treesitter'
. You will need to add a standalone use { ... }
for 'nvim-treesitter/nvim-treesitter'
. I can provide you with my config later.
Alright sure
As title, I'm using Packer.nvim and I got error: