summaryrefslogtreecommitdiff
path: root/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/dprint.lua
blob: 7ef0fad21e84162dc4b85b5d45ac1a636a552d78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
local util = require 'lspconfig.util'

return {
  default_config = {
    cmd = { 'dprint', 'lsp' },
    filetypes = {
      'javascript',
      'javascriptreact',
      'typescript',
      'typescriptreact',
      'json',
      'jsonc',
      'markdown',
      'python',
      'toml',
      'rust',
      'roslyn',
    },
    root_dir = util.root_pattern('dprint.json', '.dprint.json', 'dprint.jsonc', '.dprint.jsonc'),
    single_file_support = true,
    settings = {},
  },
  docs = {
    description = [[
https://github.com/dprint/dprint

Pluggable and configurable code formatting platform written in Rust.
  ]],
    default_config = {
      root_dir = util.root_pattern('dprint.json', '.dprint.json', 'dprint.jsonc', '.dprint.jsonc'),
    },
  },
}