diff options
Diffstat (limited to 'lua/lspconfig/serve_d.lua')
| -rw-r--r-- | lua/lspconfig/serve_d.lua | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lua/lspconfig/serve_d.lua b/lua/lspconfig/serve_d.lua new file mode 100644 index 00000000..1764e06a --- /dev/null +++ b/lua/lspconfig/serve_d.lua @@ -0,0 +1,21 @@ +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")]], + }, + }, +} |
