Add mechanism for chaining formatters
未关闭
enhancement
- 主要语言
- Vim Script
- 星标
- 1.1k
- 派生
- 102
- PR 合并指标
- 30 天内没有已合并 PR
描述
For some types of files you might want to run more than one formatter, for instance sort C++ includes (which clang-format doesn't handle) and then format with clang-format. Could codefmt support configuring a list of formatters instead of a single formatter? E.g.
``` vim
AutoFormatBuffer sortincludes,clang-format
let b:codefmt_formatter = ['sortincludes', 'clang-format']
```
贡献指南
调研方向
Start from the AutoFormatBuffer command and b:codefmt_formatter example in the issue, then inspect the existing formatter configuration and execution flow. Done means a buffer can configure multiple formatters and run them in the declared order, including the sortincludes then clang-format example.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- cpp, vim
- 领域
- tooling
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100