Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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)
                           :initialization-options (lambda ()
						     ;; pass empty object to use default config
						     (list :eval (make-hash-table)))))
(add-hook 'nickel-mode-hook #'lsp-deferred)

About

An emacs mode for the Nickel language

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages