Files
eepp/bin/assets/plugins/formatters.json
Martín Lucas Golini 4a4da521d9 Change default keybindings using option+key for macOS to make possible to input text with those key combinations. Mostly changes on modifier keys for some operations: status control panels will switch with mod+number and ctrl+number will switch to tab number, also ctrl+tab and ctrl+shift+tab will advance and move to previous tab.
Also: "lsp-symbol-code-action" will default to cmd+return. "format-doc" will default to mod+option+f.
Important: these changes do not *change* any currently configured shortcut, existing users will have to migrate manually, this is intentional to not disrupt current users work flows.
These changes are for the issue: SpartanJ/ecode#877.
2026-04-14 20:56:49 -03:00

94 lines
2.5 KiB
JSON

{
"config": {
"auto_format_on_save": false
},
"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"
}
]
}