Files
eepp/bin/assets/plugins/formatters.json
Martín Lucas Golini c4daa30880 Fixes for multi-cursor.
Fixes for file extensions (improperly filtering file extensions).
Added very basic tests for TextDocument multi-cursor.
Add .txt files into projects (register .txt extension as Plain Text).
2024-12-20 20:22:50 -03:00

89 lines
2.3 KiB
JSON

{
"config": {
"auto_format_on_save": false
},
"keybindings": {
"format-doc": "alt+f"
},
"formatters": [
{
"language": ["javascript", "typescript", "jsx", "tsx", "html"],
"file_patterns": ["%.js$", "%.ts$", "%.jsx$", "%.tsx$", "%.[mp]?html?$"],
"command": "prettier $FILENAME",
"url": "https://prettier.io"
},
{
"language": ["c", "cpp", "objective-c", "java"],
"file_patterns": ["%.inl$", "%.cpp$", "%.hpp$", "%.cc$", "%.cxx$", "%.c++$", "%.hh$", "%.hxx$", "%.h++$", "%.objcpp$", "%.m$", "%.java$"],
"command": "clang-format --style=file $FILENAME",
"url": "https://clang.llvm.org/docs/ClangFormat.html"
},
{
"language": "python",
"file_patterns": ["%.py$", "%.pyw$"],
"command": "black $FILENAME",
"type": "inplace",
"url": "https://black.readthedocs.io/en/stable/"
},
{
"language": "kotlin",
"file_patterns": ["%.kt$"],
"command": "ktlint -F $FILENAME",
"type": "inplace",
"url": "https://pinterest.github.io/ktlint/"
},
{
"language": "rust",
"file_patterns": ["%.rs$"],
"command": "rustfmt --emit stdout --color never $FILENAME",
"url": "https://rust-lang.github.io/rustfmt/"
},
{
"language": "go",
"file_patterns": ["%.go$"],
"command": "gopls format $FILENAME",
"url": "https://pkg.go.dev/golang.org/x/tools/gopls"
},
{
"language": "json",
"file_patterns": ["%.json$", "%.cson$"],
"command": "json",
"type": "native",
"url": "#native"
},
{
"language": [ "xml" ],
"file_patterns": ["%.xml$"],
"command": "xml",
"type": "native",
"url": "#native"
},
{
"language": "css",
"file_patterns": ["%.css$"],
"command": "css",
"type": "native",
"url": "#native"
},
{
"language": "zig",
"file_patterns": ["%.zig$"],
"command": "zig fmt $FILENAME",
"type": "inplace",
"url": "https://ziglang.org"
},
{
"language": "haskell",
"file_patterns": ["%.hs$"],
"command": "ormolu $FILENAME",
"url": "https://github.com/tweag/ormolu"
},
{
"language": "v",
"file_patterns": ["%.v$"],
"command": "v fmt $FILENAME",
"url": "https://vlang.io"
}
]
}