Install nim with choosenim
curl https://nim-lang.org/choosenim/init.sh -sSf | sh
Install nimlsp
nimble install nimlsp
Edit ~/.vim/coc-settings.json
{
"languageserver": {
"d": {
"command": "/usr/bin/serve-d",
"filetypes": ["d"],
"trace.server": "on",
"rootPatterns": ["dub.json", "dub.sdl"],
"initializationOptions": {
},
"settings": {
}
},
"nim": {
"command": "nimlsp",
"filetypes": ["nim"]
},
"haskell": {
"command": "haskell-language-server-wrapper",
"args": ["--lsp"],
"rootPatterns": ["*.cabal", "stack.yaml", "cabal.project", "package.yaml", "hie.yaml"],
"filetypes": ["haskell", "lhaskell", "hs"],
"settings" : {
}
}
},
}