aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/configs/dprint.lua
blob: 1cb47fbde953e3d83b4ba47f2277f9e4366dfe70 (plain) (blame)
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
local util = require 'lspconfig.util'

return {
  default_config = {
    cmd = { 'dprint', 'lsp' },
    filetypes = {
      'javascript',
      'javascriptreact',
      'typescript',
      'typescriptreact',
      'json',
      'jsonc',
      'markdown',
      'python',
      'toml',
      'rust',
      'roslyn',
      'graphql',
    },
    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.
  ]],
  },
}