Mofiqul / vscode.nvim

Neovim/Vim color scheme inspired by Dark+ and Light+ theme in Visual Studio Code
MIT License
692 stars 111 forks source link

Fixed Treesitter Shortcommings to align more with original Theme #185

Closed EnochMtzR closed 4 months ago

EnochMtzR commented 4 months ago

Current:

export and break keywords are marked as normal @keyword by TreeSitter but marked differently by vscode:

image

Solution:

Even though it is not the best solution, currently treesitter has no extensibility to allow for custom query captures therefore we need to override them ourselves. Even in doing this, I opted for not creating a new capture group since this could lead to potentially more errors and just extended the keywords to enter into existing capturing groups. We could try to apply this changes to https://github.com/tree-sitter/tree-sitter-typescript but I'm not sure it would be applicable to all themes and parsers.

image

image