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

Autocomplete/ Grammar not working on NixOS #6099

Closed
dankeyy opened this issue Feb 25, 2023 · 4 comments
Closed

Autocomplete/ Grammar not working on NixOS #6099

dankeyy opened this issue Feb 25, 2023 · 4 comments

Comments

@dankeyy
Copy link

dankeyy commented Feb 25, 2023

I get no autocomplete at all, as I gather what i needed to do is hx --grammar fetch, but

[nix-shell:~/testing]$ hx --grammar fetch
Fetching 107 grammars
107 grammars failed to fetch
        Failure 0/107: Could not create grammar directory "/nix/store/fj5a20w0sadd9d52y0z6d692nqjl955s-helix-22.08.1/lib/runtime/grammars/sources/elixir"
...

Because of course in NixOS the store is read-only.
Any suggestions?
Spinning up a FHSUserEnv for this seems a little silly

Ideally I'd like helix to rely on local files only

@archseer
Copy link
Member

To get autocomplete you need to install language servers specific to your language. The grammar fetching is something you don't need to do on a packaged build.

@dankeyy
Copy link
Author

dankeyy commented Feb 25, 2023

Of course I have the language server installed (say rust-analyzer, hx --health confirms it), autocomplete still doesn't show up

@the-mikedavis
Copy link
Member

For grammars not building because of the immutable store: #3346

Autocomplete doesn't involve the tree-sitter grammars though.

What does the log file say when you are editing a project in a language like rust where you have the language server installed? https://github.com/helix-editor/helix/wiki/FAQ#access-the-log-file (hx -v)

@dankeyy
Copy link
Author

dankeyy commented Feb 28, 2023

Ok I believe it was my wrongdoing with a cargo.toml
Anyway all works now so I'm closing this
Thanks guys

@dankeyy dankeyy closed this as completed Feb 28, 2023
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