Skip to content

Commit

Permalink
Add Nim language server (#1294)
Browse files Browse the repository at this point in the history
* Initial addition of nimlsp, the language server for Nim

* Update README for nimlsp
  • Loading branch information
berquist authored and yyoncho committed Jan 5, 2020
1 parent c07d44e commit 3c95fc7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@
| Json | [[https://github.com/vscode-langservers/vscode-json-languageserver][vscode-json-languageserver]] | Yes | Automatic or manual by ~npm i -g vscode-json-languageserver~ | |
| Julia | [[https://github.com/non-Jedi/lsp-julia][lsp-julia]] | [[https://github.com/non-Jedi/lsp-julia][lsp-julia]] | [[https://github.com/JuliaEditorSupport/LanguageServer.jl][LanguageServer.jl]] | |
| Kotlin | [[https://github.com/fwcd/KotlinLanguageServer][kotlin-language-server]] | Yes | [[https://github.com/fwcd/KotlinLanguageServer][kotlin-language-server]] | |
| Nim | [[https://github.com/PMunch/nimlsp][nimlsp]] | Yes | ~nimble install nimlsp~ | No |
| OCaml | [[https://github.com/ocaml-lsp/ocaml-language-server][ocaml-language-server]] | Yes | [[https://github.com/ocaml-lsp/ocaml-language-server][ocaml-language-server]] | |
| OCaml | [[https://github.com/ocaml/ocaml-lsp][ocaml-lsp-server]] | Yes | [[https://github.com/ocaml/ocaml-lsp][ocaml-lsp-server]] | |
| PHP(recommended) | [[https://github.com/bmewburn/vscode-intelephense][intelephense]] | Yes | npm i intelephense -g | Yes |
Expand Down
13 changes: 13 additions & 0 deletions lsp-clients.el
Original file line number Diff line number Diff line change
Expand Up @@ -784,5 +784,18 @@ responsiveness at the cost of possibile stability issues."
:major-modes '(crystal-mode)
:server-id 'scry))


;; Nim
(defgroup lsp-nim nil
"LSP support for Nim, using nimlsp."
:group 'lsp-mode
:link '(url-link "https://github.com/PMunch/nimlsp"))

(lsp-register-client
(make-lsp-client :new-connection (lsp-stdio-connection "nimlsp")
:major-modes '(nim-mode)
:priority -1
:server-id 'nimls))

(provide 'lsp-clients)
;;; lsp-clients.el ends here
3 changes: 2 additions & 1 deletion lsp-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,8 @@ Changes take effect only when a new session is started."
(verilog-mode . "verilog")
(terraform-mode . "terraform")
(ess-r-mode . "r")
(crystal-mode . "crystal"))
(crystal-mode . "crystal")
(nim-mode . "nim"))
"Language id configuration.")

(defvar lsp--last-active-workspaces nil
Expand Down

0 comments on commit 3c95fc7

Please sign in to comment.