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'),
},
},
}
|