aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/nimls.lua
blob: cc80dae87906a3330a7596634408ed7f308f8042 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
local configs = require 'lspconfig/configs'
local util = require 'lspconfig/util'

configs.nimls = {
  default_config = {
    cmd = {"nimlsp",};
    filetypes = {'nim'};
    root_dir = function(fname)
      return util.find_git_ancestor(fname) or vim.loop.os_homedir()
    end;
  };
  docs = {
    package_json = "https://raw.githubusercontent.com/pragmagic/vscode-nim/master/package.json";
    description = [[
https://github.com/PMunch/nimlsp
`nimlsp` can be installed via the `nimble` package manager:
```sh
nimble install nimlsp
```
    ]];
    default_config = {
      root_dir = [[root_pattern(".git") or os_homedir]];
    };
  };
}