mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-30 18:16:31 +03:00
Added Objective-C++ highlighter (SpartanJ/ecode#616). Replaced "Treat .h file as C++" in favor of "Treat .h files as..." with multiple options, including auto-detection (SpartanJ/ecode#614). Refresh semantic-highlighting after syntax highlighter change.
97 lines
2.6 KiB
JSON
97 lines
2.6 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", "objective-cpp", "java"],
|
|
"file_patterns": ["%.inl$", "%.cpp$", "%.hpp$", "%.cc$", "%.cxx$", "%.c++$", "%.hh$", "%.hxx$", "%.h++$", "%.objcpp$", "%.m$", "%.mm$", "%.java$"],
|
|
"command": "clang-format --style=file $FILENAME",
|
|
"url": "https://clang.llvm.org/docs/ClangFormat.html",
|
|
"prefer_lsp_formatter": true
|
|
},
|
|
{
|
|
"language": "python",
|
|
"file_patterns": ["%.py$", "%.pyw$"],
|
|
"command": "ruff format $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",
|
|
"prefer_lsp_formatter": true
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"language": "lisp",
|
|
"file_patterns": ["%.lisp$", "%.cl$", "%.el$"],
|
|
"command": "ros fmt $FILENAME",
|
|
"url": "https://github.com/roswell/roswell"
|
|
}
|
|
]
|
|
}
|