Skip to content

Conversation

@Malix-Labs
Copy link
Contributor

@Malix-Labs Malix-Labs commented Oct 9, 2025

Since https://github.com/nix-community/nixd has become the https://github.com/nix-community supported nix lsp, and the seemingly overwhelming preference for nixd, it might be time to prefer it compared to https://github.com/oxalica/nil

@rszyma
Copy link
Contributor

rszyma commented Oct 9, 2025

Isn't nil working better out-of-the-box? iirc nixd requires configuration regarding nixpkgs location to be usable

the seemingly overwhelming preference for nixd

source?

@Malix-Labs
Copy link
Contributor Author

Malix-Labs commented Oct 9, 2025

i have not configured nixd and it is properly working out of the box indeed (using nixpkgs as a flake input)

source?

The research I made quite some time ago now in various Nix spaces, including the discourse and discord.

I have started a poll there: https://discourse.nixos.org/t/poll-nix-lsp-language-server-protocol/70658

it is also possible to combine lsps


regardless, I think the https://github.com/nix-community supported one should be prefered

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/poll-nix-lsp-language-server-protocol/70658/1

@rszyma
Copy link
Contributor

rszyma commented Oct 9, 2025

i have not configured nixd and it is properly working out of the box indeed (using nixpkgs as a flake input)

I tried it now too and seems to work great (I like the pkgs definitions on hover, I'm switching to it now :D )

@jnoortheen
Copy link
Collaborator

As I have mentioned in the other PR, I am Ok with having a dynamic option where the available binary is picked first. The order of preference can start from nixd.

@jnoortheen jnoortheen closed this Oct 10, 2025
@Malix-Labs
Copy link
Contributor Author

Malix-Labs commented Oct 10, 2025

@jnoortheen neither nixd and nil are installed by default

This PR simply proposes to change the default to nixd instead of nil

Can this PR be reopened?

Or do you have a refactoring of this option or its implementation in mind, or perhaps making it so you can do nixd, nil?

@jnoortheen
Copy link
Collaborator

I would like #506 to be worked to support to choose the first available binary if you are up for that.

@Malix-Labs
Copy link
Contributor Author

I guess then #505 and #506 needs to be one congruent PR, and enableLanguageServer, serverPath, and their implementation reworked

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

Successfully merging this pull request may close these issues.

4 participants