blob: 9de5c503b485ba6730c63ebabd22cd4dbbba1704 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
;;; my-lang-nix.el --- configure emacs for nix -*- lexical-binding: t -*-
;; Author: Franck Cuny <franck@fcuny.net>
;;; Commentary:
;;; Code:
(require 'lsp-mode)
(add-to-list 'lsp-language-id-configuration '(nix-mode . "nix"))
(lsp-register-client
(make-lsp-client :new-connection
(lsp-stdio-connection '("rnix-lsp"))
:major-modes '(nix-mode)
:server-id 'nix))
(add-hook 'nix-mode-hook #'lsp-deferred)
(provide 'my-lang-nix)
;;; my-lang-nix.el ends here
|