diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-07-11 22:52:09 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-07-11 22:52:09 +0200 |
commit | e389335833047bb72a66a1f3d30760214e4c4fe0 (patch) | |
tree | c47ca9a5bdf67229ba71cd432d1808f773d61659 | |
parent | Enable direnv (diff) | |
download | nixos-config-e389335833047bb72a66a1f3d30760214e4c4fe0.tar.gz nixos-config-e389335833047bb72a66a1f3d30760214e4c4fe0.tar.bz2 nixos-config-e389335833047bb72a66a1f3d30760214e4c4fe0.zip |
Emacs: Enable direnv and lsp (haskell)
-rw-r--r-- | dotfiles/.emacs | 10 | ||||
-rw-r--r-- | hosts/home.nix | 9 |
2 files changed, 19 insertions, 0 deletions
diff --git a/dotfiles/.emacs b/dotfiles/.emacs index dd66cc4..90a1614 100644 --- a/dotfiles/.emacs +++ b/dotfiles/.emacs @@ -66,6 +66,10 @@ (current-buffer) ;; leave as-is (get-buffer-create "*dashboard*")))) +(use-package direnv + :config + (direnv-mode)) + (use-package nix-mode :mode "\\.nix\\'") @@ -74,3 +78,9 @@ (use-package typescript-mode) (use-package jq-mode) + +(use-package lsp-mode + :hook ((haskell-mode . lsp-deferred)) + :commands (lsp lsp-deferred)) + +(use-package lsp-haskell) diff --git a/hosts/home.nix b/hosts/home.nix index 3941d6c..c406328 100644 --- a/hosts/home.nix +++ b/hosts/home.nix @@ -95,12 +95,21 @@ in extraPackages = epkgs: with epkgs; [ use-package + direnv + evil evil-collection doom-modeline dashboard + lsp-ui + projectile + + lsp-mode + company + lsp-haskell + nix-mode haskell-mode typescript-mode |