Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ghostbuster91/nix-metals
https://github.com/ghostbuster91/nix-metals
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ghostbuster91/nix-metals
- Owner: ghostbuster91
- License: apache-2.0
- Created: 2023-05-23T21:34:12.000Z (over 1 year ago)
- Default Branch: stable
- Last Pushed: 2024-09-29T09:07:50.000Z (about 1 month ago)
- Last Synced: 2024-10-06T03:01:50.823Z (about 1 month ago)
- Language: Nix
- Size: 111 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nix metals
![ci-badge](https://img.shields.io/static/v1?label=Built%20with&message=nix&color=blue&style=flat&logo=nixos&link=https://nixos.org&labelColor=111212)
[![built with garnix](https://img.shields.io/endpoint?url=https%3A%2F%2Fgarnix.io%2Fapi%2Fbadges%2Fghostbuster91%2Fnix-metals%3Fbranch%3Dnightly)](https://garnix.io)Expose metals as a nix derivation
## Usage
Add to your inputs:
```nix
nix-metals = {
url = "github:ghostbuster91/nix-metals/stable";
inputs.nixpkgs.follows = "nixpkgs";
};
```(or use `nightly` branch if you would like to use snapshot versions)
Configure your editor to use provided metals package.
Example for neovim:
```lua
metals_config.settings = {
metalsBinaryPath = binaries.metals_binary_path,
showImplicitArguments = true,
superMethodLensesEnabled = false,
excludedPackages = {
"akka.actor.typed.javadsl",
"com.github.swagger.akka.javadsl",
},
enableSemanticHighlighting = false,
}
```where `metals_binary_path` is set to:
```nix
"${nix-metals.packages.${system}.metals}/bin/metals",
```