Bundle ruff in nvim closure

This commit is contained in:
2025-05-09 19:52:46 +02:00
parent 45b5e8c413
commit 32e96de43f
4 changed files with 2 additions and 23 deletions
+1 -7
View File
@@ -14,13 +14,7 @@ return {
opts = {
default_format_opts = { async = true },
formatters_by_ft = {
python = function(bufnr)
if require("conform").get_formatter_info("ruff_format", bufnr).available then
return { "ruff_format", "ruff_organize_imports" }
else
return { "isort", "black" }
end
end,
python = { "ruff_format", "ruff_organize_imports" },
javascript = { "biome-check", "prettierd", "prettier", stop_after_first = true },
typescript = { "biome-check", "prettierd", "prettier", stop_after_first = true },
javascriptreact = { "biome-check", "prettierd", "prettier", stop_after_first = true },