Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 1.1 KB

README.md

File metadata and controls

28 lines (21 loc) · 1.1 KB

nickel-mode

MELPA Build Status

An emacs mode for the Nickel programming language.

Installation

Install from MELPA

LSP Integration

First, ensure you have the Nickel language server, nls, installed.

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))
(add-hook 'nickel-mode-hook 'lsp-deferred)