mirror of
https://github.com/boxpositron/absolute-vim.git
synced 2026-02-28 19:50:38 +00:00
15 lines
424 B
Lua
15 lines
424 B
Lua
local conform = require("conform")
|
|
|
|
conform.setup({
|
|
formatters_by_ft = {
|
|
lua = { "stylua" },
|
|
-- Conform will run multiple formatters sequentially
|
|
python = { "isort", "black" },
|
|
-- Use a sub-list to run only the first available formatter
|
|
javascript = { "biome" },
|
|
astro = { { "prettierd", "prettier" } },
|
|
},
|
|
})
|
|
|
|
vim.o.formatexpr = "v:lua.require'conform'.formatexpr()"
|