From c5c58f9294dfcae7b04ec9edfbef316481c756c6 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Wed, 21 Feb 2024 13:42:18 +0300 Subject: 2024-02-21 --- modules/common/emacs/doom/config.el | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'modules/common/emacs/doom/config.el') diff --git a/modules/common/emacs/doom/config.el b/modules/common/emacs/doom/config.el index 70116f8..8fd2afc 100644 --- a/modules/common/emacs/doom/config.el +++ b/modules/common/emacs/doom/config.el @@ -121,6 +121,21 @@ (setq lsp-haskell-formatting-provider "ormolu") +;; +;;; Nickel +;; + +(use-package! nickel-mode + :config + (after! lsp-mode + (add-to-list 'lsp-language-id-configuration '(nickel-mode . "nickel") + (lsp-register-client (make-lsp-client + :new-connection (lsp-stdio-connection "nls") + :activation-fn (lsp-activate-on "nickel") + :server-id 'nls + :major-modes 'nickel-mode))) + (add-hook 'nickel-mode-hook 'lsp-deferred))) + ;; ;;; YAML ;; -- cgit 1.4.1