1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 12:20:05 +08:00
SpaceVim/bundle/nvim-lspconfig/lua/lspconfig/nimls.lua
2021-10-05 15:13:10 +08:00

23 lines
597 B
Lua

local configs = require 'lspconfig/configs'
local util = require 'lspconfig/util'
configs.nimls = {
default_config = {
cmd = { 'nimlsp' },
filetypes = { 'nim' },
root_dir = function(fname)
return util.root_pattern '*.nimble'(fname) or util.find_git_ancestor(fname) or util.path.dirname(fname)
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
```
]],
},
}