mirror of
https://github.com/Dichgrem/DCGOS.git
synced 2025-12-17 03:31:59 -05:00
feat:add_some
feat:add_edl build:add_dart&&kotlin&&flutter chore:enable_unfree
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user