Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ayoubelmhamdi opened this issue Aug 17, 2023 · 4 comments

Comments

@ayoubelmhamdi
Copy link

Example code

const name[cursore]

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

const nam: [cursore]
@laureanray
Copy link
Contributor

laureanray commented Aug 17, 2023

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

@filNaj
Copy link
Owner

filNaj commented Aug 17, 2023

@ayoubelmhamdi I couldn't replicate this either

@ayoubelmhamdi
Copy link
Author

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
Copy link
Author

ayoubelmhamdi commented Aug 21, 2023

@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.
  },
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants