mirror of
https://github.com/zoriya/flake.git
synced 2026-08-15 18:43:42 +00:00
Bundle ruff in nvim closure
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user