Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aaronjanse/nix-eval-lsp
Nix language server that evaluates code
https://github.com/aaronjanse/nix-eval-lsp
lsp nix
Last synced: 3 months ago
JSON representation
Nix language server that evaluates code
- Host: GitHub
- URL: https://github.com/aaronjanse/nix-eval-lsp
- Owner: aaronjanse
- License: mit
- Created: 2021-05-07T00:03:21.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-06-19T02:00:16.000Z (over 3 years ago)
- Last Synced: 2024-10-12T00:27:04.226Z (4 months ago)
- Topics: lsp, nix
- Language: Rust
- Homepage: https://github.com/nix-community/rnix-lsp
- Size: 664 KB
- Stars: 55
- Watchers: 8
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**Use [nix-community/rnix-lsp](https://github.com/nix-community/rnix-lsp). The `nix-eval-lsp` repo is merely a proof-of-concept.**
This README has been shortened to encourage readers to use [nix-lsp](https://github.com/nix-community/rnix-lsp).
Its previous contents, including a gif and usage instructions, are [available in git history](https://github.com/aaronjanse/nix-eval-lsp/tree/c48f47f705b361ea1d3c1f3e8c2bc3b4894a1793).---
`nix-eval-lsp` is an proof-of-concept [language server](https://langserver.org/) for [Nix](https://nixos.org) that provides completions and tooltips by evaluating Nix expressions as they are typed. This allows for several features:
- hover over an expression to see its value
- auto-complete inside expressions such as `with pkgs; [ ]`
- goto definitions across filesThe evaluator is developed for the purpose of debugging only. It does not aim to correctly implement Nix in its entirety.
Huge thank you to [@jd91mZM2](https://github.com/jd91mZM2) for [nix-community/rnix-parser](https://github.com/nix-community/rnix-parser) and [nix-community/rnix-lsp](https://github.com/nix-community/rnix-lsp).