tree-sitter / tree-sitter-typescript

TypeScript grammar for tree-sitter
MIT License
341 stars 104 forks source link

Backtick function calls cause lag #179

Closed captainko closed 2 years ago

captainko commented 2 years ago

if I include a backtick function like below, I will be delayed after every keystroke. The following piece of code is parsed correctly:

class B {
  method() {
    $localize`tes`
  }
}

video

maxbrunsfeld commented 2 years ago

Can you open this issue on the Neovim or nvim-treesitter repositories? I don't think this lag is happening inside of Tree-sitter itself.