Files
eepp/bin/assets/plugins/formatters.json
Martín Lucas Golini e44e20d81b ecode:
Fixed Go LSP ([gopls](https://github.com/golang/tools/blob/master/gopls)).
Added Go formatter ([gopls](https://github.com/golang/tools/blob/master/gopls) format).
Added [odin](https://odin-lang.org/) LSP support (with [ols](https://github.com/DanielGavin/ols)).
Added Dart LSP support.
2023-01-21 03:29:06 -03:00

52 lines
1.1 KiB
JSON

{
"config": {
"auto_format_on_save": false
},
"keybindings": {
"format-doc": "alt+f"
},
"formatters": [
{
"file_patterns": ["%.js$", "%.ts$"],
"command": "prettier $FILENAME"
},
{
"file_patterns": ["%.inl$", "%.cpp$", "%.hpp$", "%.cc$", "%.cxx$", "%.c++$", "%.hh$", "%.hxx$", "%.h++$", "%.objcpp$"],
"command": "clang-format --style=file $FILENAME"
},
{
"file_patterns": ["%.py$", "%.pyw$"],
"command": "black $FILENAME",
"type": "inplace"
},
{
"file_patterns": ["%.kt$"],
"command": "ktlint -F $FILENAME",
"type": "inplace"
},
{
"file_patterns": ["%.rs"],
"command": "rustfmt --emit stdout --color never $FILENAME"
},
{
"file_patterns": ["%.go"],
"command": "gopls format $FILENAME"
},
{
"file_patterns": ["%.json$", "%.cson$"],
"command": "json",
"type": "native"
},
{
"file_patterns": ["%.xml", "%.html?$"],
"command": "xml",
"type": "native"
},
{
"file_patterns": ["%.css"],
"command": "css",
"type": "native"
}
]
}