filNaj / tree-setter

A treesitter-module which will place equals, semicolons, commas and double points automatically for you!
122 stars 6 forks source link

The last character of a TypeScript variable will be accidentally removed. #16

Open ayoubelmhamdi opened 1 year ago

ayoubelmhamdi commented 1 year ago

Example code

const name[cursore]

then type space, the last char will removed in this variable

const nam: [cursore]
laureanray commented 1 year ago

@ayoubelmhamdi Are you using the latest version of the plugin? I couldn't replicate this.

filNaj commented 1 year ago

@ayoubelmhamdi I couldn't replicate this either

ayoubelmhamdi commented 1 year ago

i think i am in this 4acb2f3bfba823a09bca856266e6918f10add276 commit hash. i will check the last version or try to provide all informations of my Linux workflow

ayoubelmhamdi commented 1 year ago

@filNaj @laureanray The problem is caused by the active Vim syntax highlighting (I active it to use the typst.vim).

require('nvim-treesitter.configs').setup {
  highlight = {
    enable = true,
    additional_vim_regex_highlighting = true, -- error comes from this option.
  },
}