From ed03214c315f9c282fb53b0a8440ee428c671f30 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Mon, 7 Dec 2020 23:33:09 +0100 Subject: [PATCH] nim: added installation and vim support --- wiki/linux/vim/nim.md | 28 ++++++++++++++++++++++++++++ wiki/programming-languages/nim.md | 16 ++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 wiki/linux/vim/nim.md create mode 100644 wiki/programming-languages/nim.md diff --git a/wiki/linux/vim/nim.md b/wiki/linux/vim/nim.md new file mode 100644 index 0000000..69eaae1 --- /dev/null +++ b/wiki/linux/vim/nim.md @@ -0,0 +1,28 @@ +# Nim + +[Nim](https://nim-lang.org) is a statically typed compiled systems programming + +## Autocompletion + +### Coc + +To enable autocompletion for coc you need to install `nimlsp` +(`nimble install nimlsp`). +After that you need to add the following lines to your coc config file. + +```json +{ + "languageserver": { + "nim": { + "command": "nimlsp", + "filetypes": ["nim"], + "trace.server": "verbose" + } + } +} +``` + +### Highlighting + +To enable highlighting you can install a +[nvim plugin by alaviss](https://github.com/alaviss/nim.nvim). diff --git a/wiki/programming-languages/nim.md b/wiki/programming-languages/nim.md new file mode 100644 index 0000000..e40f89a --- /dev/null +++ b/wiki/programming-languages/nim.md @@ -0,0 +1,16 @@ +# Nim + +[Nim](https://nim-lang.org) is a statically typed compiled systems programming +language. + +## Installation + +You can install nim using choosenim with +`curl https://nim-lang.org/choosenim/init.sh -sSf | sh`. + +## IDE + +### Vim + +The steps to make Vim a c IDE are described in +[the vim section of this wiki](../linux/vim/nim.md).