Replace nixd with nil

It currently relies on Nix 2.16 which has a security flaw and is old anyway.
This commit is contained in:
Andreas Zweili 2024-03-10 14:58:32 +01:00
parent 74ad7c7614
commit 1278e0147e
2 changed files with 8 additions and 7 deletions

View File

@ -16,10 +16,10 @@ in
home.packages = with pkgs; [
fd
multimarkdown
nil # Nix language server
nodejs_20 # required for copilot
nodePackages.prettier # formatting files
nodePackages.prettier-plugin-toml
unstable.nixd # Nix language server
unstable.nixfmt-rfc-style
pandoc
ripgrep

View File

@ -7,12 +7,6 @@
;; if you want which-key integration
(lsp-mode . lsp-enable-which-key-integration))
:config
(with-eval-after-load 'lsp-mode
(lsp-register-client
(make-lsp-client :new-connection (lsp-stdio-connection "nixd")
:major-modes '(nix-mode)
:priority 0
:server-id 'nixd)))
(lsp-treemacs-sync-mode 1)
(setq company-minimum-prefix-length 1
company-idle-delay 0.0 ;; default is 0.2
@ -25,6 +19,13 @@
lsp-pylsp-plugins-pylint-enabled t)
:commands lsp)
(use-package lsp-nix
:ensure lsp-mode
:after (lsp-mode)
:demand t
:custom
(lsp-nix-nil-formatter ["nixfmt"]))
;; optionally
(use-package lsp-ui :commands lsp-ui-mode)
;; if you are ivy user