diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/dprint.lua | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/dprint.lua b/lua/lspconfig/server_configurations/dprint.lua new file mode 100644 index 00000000..7ef0fad2 --- /dev/null +++ b/lua/lspconfig/server_configurations/dprint.lua @@ -0,0 +1,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'), + }, + }, +} |
