1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 09:50:04 +08:00
SpaceVim/bundle/nvim-lspconfig/lua/lspconfig/serve_d.lua
2021-10-05 15:13:10 +08:00

22 lines
633 B
Lua

local configs = require 'lspconfig/configs'
local util = require 'lspconfig/util'
configs.serve_d = {
default_config = {
cmd = { 'serve-d' },
filetypes = { 'd' },
root_dir = util.root_pattern('dub.json', 'dub.sdl', '.git'),
},
docs = {
description = [[
https://github.com/Pure-D/serve-d
`Microsoft language server protocol implementation for D using workspace-d.`
Download a binary from https://github.com/Pure-D/serve-d/releases and put it in your $PATH.
]],
default_config = {
root_dir = [[util.root_pattern("dub.json", "dub.sdl", ".git")]],
},
},
}