nvim-treesitter/nvim-treesitter-angular

localize function significantly degrades performance

Everduin94 opened this issue · 2 comments

Issue

When using nvim-treesitter-angular and highlight enabled for typescript. If a localize function is added to the file, the performance degrades to a point that it is unusable.

Example

Screen.Recording.2021-10-12.at.2.39.54.PM.mov

My config

Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
Plug 'nvim-treesitter/nvim-treesitter-angular'
    
lua << EOF
require'nvim-treesitter.configs'.setup {
  ensure_installed = "all", -- one of "all", "maintained" (parsers with maintainers), or a list of languages
  ignore_install = { "haskell" }, -- List of parsers to ignore installing
  highlight = {
    enable = true,              -- false will disable the whole extension
  },
}
EOF

NVIM v0.6.0-dev+446-g0fc8597f0

Yeah I'm not sure what specifically causes the performance degrading (I'm relatively new to nvim and treesitter 😬), but I posted the issue here because if I remove nvim-treesitter-angular plugin but keep nvim-treesitter + highlighting for typescript; I don't have the same performance issues.

Example

Screen.Recording.2021-10-12.at.3.40.18.PM.mov