zed-extensions / nix

Nix language support in Zed
MIT License
24 stars 10 forks source link

Request: `nil` and other alternative lsp server support #9

Open ozwaldorf opened 3 months ago

ozwaldorf commented 3 months ago

Would be nice to support using alternative lsp servers, like nil.

deng232 commented 2 months ago

nil seems like having more feature completed

ozwaldorf commented 2 months ago

nil seems like having more feature completed

I especially like that it provides suggestions for builtins, along with their arguments

ozwaldorf commented 2 months ago

It seems trivial to implement support for a custom binary config, but I wasn't able to test my changes as zed on nix doesn't work with development extensions

niklaskorz commented 1 month ago

nixd is pretty much unusable when working on nixpkgs (very high memory and CPU usage), so I too would like to see nil support

matubu commented 1 month ago

It seems trivial to implement support for a custom binary config, but I wasn't able to test my changes as zed on nix doesn't work with development extensions

I am on NixOS and to test development extensions. I run nix-shell inside the zed repo. And then launch zed from their either from source with cargo run --release or just zed and then I can install development extensions with the button

*Edit I actually also had to setup `nix-ld` ```nix programs.nix-ld.enable = true; programs.nix-ld.package = pkgs.nix-ld-rs; programs.nix-ld.libraries = with pkgs; [ alsa-lib at-spi2-atk at-spi2-core atk cairo cups curl dbus expat fontconfig freetype fuse3 gdk-pixbuf glib gtk3 icu libGL libappindicator-gtk3 libdrm libglvnd libnotify libpulseaudio libunwind libusb1 libuuid libxkbcommon libxml2 mesa nspr nss openssl pango pipewire stdenv.cc.cc systemd vulkan-loader xorg.libX11 xorg.libXScrnSaver xorg.libXcomposite xorg.libXcursor xorg.libXdamage xorg.libXext xorg.libXfixes xorg.libXi xorg.libXrandr xorg.libXrender xorg.libXtst xorg.libxcb xorg.libxkbfile xorg.libxshmfence zlib ]; ```
inclyc commented 6 days ago

nixd is pretty much unusable when working on nixpkgs (very high memory and CPU usage), so I too would like to see nil support

Would you like to help us improve? File a issue on nix-community/nixd, report it as a bug!