NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.2k stars 14.2k forks source link

tree-sitter-nu grammar doesnt load in Neovim #331650

Open biggiesmallsAG opened 3 months ago

biggiesmallsAG commented 3 months ago

Describe the bug

The grammar package for tree-sitter-nu called by nvim-treesitter.withPlugins is never picked up by Neovim (v0.10.0).

Steps To Reproduce

Steps to reproduce the behavior: Install the grammar, open neovim, run checkhealth, see that the grammar's are loaded or not

Expected behavior

The grammar should be loaded by neovim and usable in a .nu (nushell file)

Screenshots

image image image

Additional context

From what i can see, the "nu" folder is linked to the tree-sitter-nu-grammar-0.22.5 folder in the nix store but it doesnt follow the same mechanism as the other grammars do:

The queries folder is a parent of nu which is a parent of nu which is a parent of the queries (highlights/indents/injections) like so: /n/s/brkhrsr7nklxgd63ngg2mw7vkvd9fjmk-vim-pack-dir/pack/myNeovimPackages/start/vimplugin-treesitter-grammar-nu/queries/nu/nu/queries

Other grammars are as follows: /n/s/b/pack/myNeovimPackages/start/vimplugin-treesitter-grammar-python/queries/python/queries

Notify maintainers

@Profpatsch

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

❯ : nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.32, NixOS, 24.05 (Uakari), 24.05.20240531.63dacb4`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - channels(root): `"nixos-23.11"`
 - nixpkgs: `/nix/store/wzx1ba5hqqfa23vfrvqmfmkpj25p37mr-source`
eclairevoyant commented 3 months ago

how did you "install" the grammar?

biggiesmallsAG commented 3 months ago

how did you "install" the grammar?

image

qwqawawow commented 1 week ago

https://github.com/nvim-treesitter/nvim-treesitter/commit/604aa5a7c8cf1fd0c4ad667a0cc7fb8aaf0be33e now nushell has been merged into nvim-treesitter