fix: conform config

This commit is contained in:
Noa Aarts 2024-07-23 21:48:11 +02:00
parent 3499df1856
commit 93b88548c2

View file

@ -576,16 +576,16 @@ require("lazy").setup({
notify_on_error = false, notify_on_error = false,
format_on_save = { format_on_save = {
timeout_ms = 500, timeout_ms = 500,
lsp_fallback = true, lsp_format = "fallback",
}, },
formatters_by_ft = { formatters_by_ft = {
lua = { "stylua" }, lua = { "stylua" },
-- Conform can also run multiple formatters sequentially -- Conform can also run multiple formatters sequentially
python = { "black" }, python = { "black" },
go = { "gopls" }, go = { "gofmt" },
nix = { "rnix", "nixpkgs-fmt" }, nix = { "nixpkgs_fmt" },
-- --
-- You can use a sub-list to tell conform to run *until* a formatter -- You can use a sub-list to tell conform to run *until* a formatter
-- is found. -- is found.