# nil
*Nix Language server*
https://github.com/oxalica/nil
### Install with `nix-env` or `nix profile`
See [instructions](https://github.com/oxalica/nil?tab=readme-ov-file#installation)
### Install with [[Cargo]]
```bash
# Ensure nix is installed
$ which nix
$ cargo install --git https://github.com/oxalica/nil nil
```
### Add to [[coc.nvim]]
`:CocConfig`
```json
{
"languageserver": {
"nix": {
"command": "nil",
"filetypes": [
"nix"
],
"rootPatterns": [
"flake.nix"
],
"settings": {
"nil": {
"formatting": {
"command": [
"nixpkgs-fmt"
]
}
}
}
}
}
}
```