1
0
mirror of https://github.com/tiyn/wiki.git synced 2025-04-19 06:07:44 +02:00
wiki/wiki/linux/vim/nim.md
2023-08-18 00:32:46 +02:00

29 lines
585 B
Markdown

# Nim in Vim
[Nim](https://nim-lang.org) is a statically typed compiled systems programming.
## Autocompletion
### Coc
To enable autocompletion for [coc](coc.md) 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
[vim plugin by zah](https://github.com/zah/nim.vim).