nix-community / tree-sitter-nix

Nix grammar for tree-sitter [maintainer=@cstrahan]
MIT License
179 stars 31 forks source link

Missing `typescriptreact` parser #111

Closed samueljoli closed 3 weeks ago

samueljoli commented 3 weeks ago

Currently getting the following error:

Error executing vim.schedule lua callback: ...rapped-nightly/share/nvim/runtime/lua/vim/treesitter.lua:425: Parser could not be created for buffer 11 and language "typescriptreact"

Currently using the nightly install of vim:

    neovim-nightly-overlay = {
      url = "github:nix-community/neovim-nightly-overlay/f35afbe60a4ff71fd65fec3839fc38943f961951";
    };

Looking at the installed parsers and I don't see it listed.

Atemu commented 3 weeks ago

This does not look related to the nix parser at all?

samueljoli commented 3 weeks ago

@Atemu I was under the assumption that nvim-treesitter.withAllGrammars installs all parsers, for which I would have thought that typescriptreact would have been included. Sorry I'm new to nix and so I could be making false assumptions here. Do you have any idea what the issue might be?

Atemu commented 3 weeks ago

This is the repo for the treesitter grammar for the Nix language.

It'd probably be included in nvim-treesitter's grammar packages like all the other grammars but otherwise has no relation to that component. For issues regarding nvim-treesitter, you'll have to report that wherever that is maintained; it's not here. It's probably that overlay you're including or perhaps Nixpkgs.

samueljoli commented 3 weeks ago

@Atemu Ah you're right and apologies this is a mistake. This was fixed upstream here. Closing this issue.