oxalica / nil

NIx Language server, an incremental analysis assistant for writing in Nix.
Apache License 2.0
1.39k stars 41 forks source link

[Emacs] `lsp-nix` package not found #95

Closed 64J0 closed 1 year ago

64J0 commented 1 year ago

Description:

I tried to replicate the install instructions for the LSP Emacs but got an error telling that the package lsp-nix was not available in neither of those repositories:

Also, after installing the nil package (nix-env -iA nixpkgs.nil) and adding only the nix-mode, it started working apparently (at least I got some highlights).

My configuration for the Nix with LSP in Emacs:

(use-package nix-mode
  :straight t
  :mode ("\\.nix\\'" . nix-mode)
  :hook (nix-mode . lsp-deferred))

Finally, my question is, where can I find the lsp-nix package?

leungbk commented 1 year ago

lsp-nix is not a separate "package"; it is some Lisp that is bundled with lsp-mode.

My guess is that you did something like

(use-package lsp-nix
  :straight t
;; other stuff
)

and were correctly told by straight.el that lsp-nix was not available in the package repositories.

64J0 commented 1 year ago

Indeed, that was what I did @leungbk. Thanks for the clarification!

I'm going to close this issue now.