aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Little <50145141+CodeLongAndProsper90@users.noreply.github.com>2021-07-17 13:10:16 -0500
committerGitHub <noreply@github.com>2021-07-17 11:10:16 -0700
commit4a2a907d528166154c326d7c624086a261fc2c07 (patch)
treec56204baf175d9ad60dcbee07c74618b2f88cc4c
parent[docgen] Update CONFIG.md (diff)
downloadnvim-lspconfig-4a2a907d528166154c326d7c624086a261fc2c07.tar
nvim-lspconfig-4a2a907d528166154c326d7c624086a261fc2c07.tar.gz
nvim-lspconfig-4a2a907d528166154c326d7c624086a261fc2c07.tar.bz2
nvim-lspconfig-4a2a907d528166154c326d7c624086a261fc2c07.tar.lz
nvim-lspconfig-4a2a907d528166154c326d7c624086a261fc2c07.tar.xz
nvim-lspconfig-4a2a907d528166154c326d7c624086a261fc2c07.tar.zst
nvim-lspconfig-4a2a907d528166154c326d7c624086a261fc2c07.zip
feat: add serve-d language server (#1080)
-rw-r--r--lua/lspconfig/serve_d.lua21
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")]],
+ },
+ },
+}