nickel-mode
May 27, 2025 ยท View on GitHub
An emacs mode for the Nickel programming language.
Installation
Install from MELPA
LSP Integration
First, ensure you have the Nickel language server, nls, installed.
With lsp-mode
Add the following to your init.el:
(require 'nickel-mode)
(require '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)
:initialization-options (lambda ()
;; pass empty object to use default config
(list :eval (make-hash-table)))))
(add-hook 'nickel-mode-hook #'lsp-deferred)