mirror of
https://github.com/tiyn/wiki.git
synced 2025-04-10 18:47:45 +02:00
nim: added installation and vim support
This commit is contained in:
parent
a82d4b0141
commit
ed03214c31
28
wiki/linux/vim/nim.md
Normal file
28
wiki/linux/vim/nim.md
Normal file
@ -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).
|
16
wiki/programming-languages/nim.md
Normal file
16
wiki/programming-languages/nim.md
Normal file
@ -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).
|
Loading…
x
Reference in New Issue
Block a user