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

585 B

Nim in Vim

Nim 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.

{
    "languageserver": {
        "nim": {
            "command": "nimlsp",
            "filetypes": ["nim"],
            "trace.server": "verbose"
        }
   }
}

Highlighting

To enable highlighting you can install a vim plugin by zah.