Skip to content

Instantly share code, notes, and snippets.

@cyraxjoe
Created November 28, 2019 06:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cyraxjoe/9001fcc5d2de0669d7e0d27f7a49ee90 to your computer and use it in GitHub Desktop.
Save cyraxjoe/9001fcc5d2de0669d7e0d27f7a49ee90 to your computer and use it in GitHub Desktop.
Hook nim-mode into lsp-mode.
;; hook nim-mode into lsp
(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 'nimlsp))
(add-hook 'nim-mode-hook #'lsp)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment