feat:add_some

feat:add_edl
build:add_dart&&kotlin&&flutter
chore:enable_unfree
This commit is contained in:
dichgrem
2025-11-19 21:13:31 +08:00
parent 51d40326c4
commit 2f4fb7e2d2
4 changed files with 26 additions and 3 deletions

View File

@@ -29,6 +29,8 @@ return {
-- C/C++
opts.formatters_by_ft.c = { "clang_format" }
opts.formatters_by_ft.cpp = { "clang_format" }
-- Kotlin
opts.formatters_by_ft.kotlin = { "ktlint" }
-- Python
opts.formatters_by_ft.python = { "black", "ruff_format" }
-- JS/TS/Web
@@ -43,6 +45,15 @@ return {
opts.formatters_by_ft.yaml = { "yamlfmt" }
-- TOML
opts.formatters_by_ft.toml = { "taplo" }
-- Dart / Flutter
opts.formatters_by_ft.dart = {
command = "dart",
args = function(ctx)
return { "format", ctx.bufname }
end,
stdin = false,
exit_codes = { 0 },
}
opts.default_format_opts = {
timeout_ms = 1500,
lsp_format = "fallback",