aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorRobert Brunhage <robertbrunhage@gmail.com>2024-01-12 11:06:16 +0100
committerGitHub <noreply@github.com>2024-01-12 18:06:16 +0800
commit5ac796247feb8c30cedef90c36b9e4e446a3fca1 (patch)
treeb7db249b3d7efcac826ce592268646adbe90924d /lua
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-5ac796247feb8c30cedef90c36b9e4e446a3fca1.tar
nvim-lspconfig-5ac796247feb8c30cedef90c36b9e4e446a3fca1.tar.gz
nvim-lspconfig-5ac796247feb8c30cedef90c36b9e4e446a3fca1.tar.bz2
nvim-lspconfig-5ac796247feb8c30cedef90c36b9e4e446a3fca1.tar.lz
nvim-lspconfig-5ac796247feb8c30cedef90c36b9e4e446a3fca1.tar.xz
nvim-lspconfig-5ac796247feb8c30cedef90c36b9e4e446a3fca1.tar.zst
nvim-lspconfig-5ac796247feb8c30cedef90c36b9e4e446a3fca1.zip
feat: add dcmls support (#2963)
https://dcm.dev/
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/dcmls.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/dcmls.lua b/lua/lspconfig/server_configurations/dcmls.lua
new file mode 100644
index 00000000..8926f9f6
--- /dev/null
+++ b/lua/lspconfig/server_configurations/dcmls.lua
@@ -0,0 +1,19 @@
+local util = require 'lspconfig.util'
+
+return {
+ default_config = {
+ cmd = { 'dcm', 'start-server' },
+ filetypes = { 'dart' },
+ root_dir = util.root_pattern 'pubspec.yaml',
+ },
+ docs = {
+ description = [[
+https://dcm.dev/
+
+Language server for dart.
+]],
+ default_config = {
+ root_dir = [[root_pattern("pubspec.yaml")]],
+ },
+ },
+}