Skip to content

Commit

Permalink
build(xmonad): try nixd instead of rnix-lsp
Browse files Browse the repository at this point in the history
  • Loading branch information
yurrriq committed Feb 6, 2024
1 parent 6bf5967 commit 8989e8c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
12 changes: 5 additions & 7 deletions config/xmonad/emacs.el
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,14 @@
:config (global-hl-todo-mode t))

(use-package lsp-mode
:hook ((haskell-mode . lsp-deferred))
:hook ((haskell-mode
nix-mode)
. lsp-deferred)
:commands (lsp lsp-deferred)
:config
(advice-add 'lsp :before #'direnv-update-environment)
(add-to-list 'lsp-language-id-configuration '(nix-mode . "nix"))
(setq lsp-modeline-code-actions-enable nil)
(lsp-register-client
(make-lsp-client :new-connection (lsp-stdio-connection '("rnix-lsp"))
:major-modes '(nix-mode)
:server-id 'nix)))
;; (add-to-list 'lsp-language-id-configuration '(nix-mode . "nix"))
(setq lsp-modeline-code-actions-enable nil))

(use-package lsp-ui
:hook (haskell-mode . lsp-ui-mode)
Expand Down
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@
haskellPackages.hlint
haskellPackages.ormolu
haskellPackages.pointfree
nixd
pre-commit
rnix-lsp
xorg.libX11
xorg.libXScrnSaver
xorg.libXext
Expand Down
2 changes: 1 addition & 1 deletion src/flake.nw
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ xmonad =
haskellPackages.hlint
haskellPackages.ormolu
haskellPackages.pointfree
nixd
pre-commit
rnix-lsp
xorg.libX11
xorg.libXScrnSaver
xorg.libXext
Expand Down

0 comments on commit 8989e8c

Please sign in to comment.