From aa437986e7b930d384a6d0c476f8932bb9e30027 Mon Sep 17 00:00:00 2001 From: Artur Manuel Date: Thu, 19 Sep 2024 00:40:05 +0100 Subject: [PATCH] chore: haskell lsp support --- emacs/config.org | 7 +++++-- emacs/mkEmacs.nix | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/emacs/config.org b/emacs/config.org index 430015a..0035f49 100644 --- a/emacs/config.org +++ b/emacs/config.org @@ -292,8 +292,11 @@ Enabling Emacs-LSP to use LSPs, I am very dry on syntax highlighters right now. #+END_SRC *** Haskell #+BEGIN_SRC emacs-lisp - (use-package haskell-mode - :mode "\\.hs\\'") + (use-package lsp-haskell + :hook (haskell-mode . lsp)) + + (use-package haskell-mode + :mode "\\.hs\\'") #+END_SRC *** Python #+BEGIN_SRC emacs-lisp diff --git a/emacs/mkEmacs.nix b/emacs/mkEmacs.nix index 7d56aea..1df225c 100644 --- a/emacs/mkEmacs.nix +++ b/emacs/mkEmacs.nix @@ -59,6 +59,7 @@ in ement autothemer geiser-guile + lsp-haskell ; treesit-grammars = e.treesit-grammars.with-all-grammars;