From 46cce8f7de131a658762cfd8c1d70bd5caccb1e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Sat, 29 Jun 2019 14:52:24 +0200 Subject: [PATCH] add Nim language --- init.el | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/init.el b/init.el index 0633ecf..ddbad03 100644 --- a/init.el +++ b/init.el @@ -663,6 +663,28 @@ inserted between the braces between the braces." (add-hook 'python-mode-hook #'my-python-mode-hook-fn) +;;; Nim +;;; --- + +(use-package lsp-mode + :commands lsp + :config + ;; Register `nimlsp` from https://github.com/PMunch/nimlsp + (add-to-list 'lsp-language-id-configuration '(nim-mode . "nim")) + (lsp-register-client + (make-lsp-client :new-connection (lsp-stdio-connection '("nimlsp")) + :major-modes '(nim-mode) + :server-id 'nim-ls))) + +(use-package highlight-indent-guides + :init + (setq highlight-indent-guides-method 'character)) + +(use-package nim-mode + :init + (add-hook 'nim-mode-hook 'highlight-indent-guides-mode)) + + ;;; Rust ;;; ----