Skip to content

Commit 4e5ed5d

Browse files
author
Jonas Hagberg
committed
Fix autoformat
1 parent a4db3b5 commit 4e5ed5d

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

init.lua

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -600,17 +600,17 @@ require('lazy').setup({
600600

601601
{ -- Autoformat
602602
'stevearc/conform.nvim',
603-
lazy = false,
604-
keys = {
605-
{
606-
'<leader>f',
607-
function()
608-
require('conform').format { async = true, lsp_fallback = true }
609-
end,
610-
mode = '',
611-
desc = '[F]ormat buffer',
612-
},
613-
},
603+
lazy = true,
604+
-- keys = {
605+
-- {
606+
-- '<leader>f',
607+
-- function()
608+
-- require('conform').format { async = true, lsp_fallback = true }
609+
-- end,
610+
-- mode = '',
611+
-- desc = '[F]ormat buffer',
612+
-- },
613+
-- },
614614
opts = {
615615
notify_on_error = false,
616616
format_on_save = function(bufnr)
@@ -878,7 +878,7 @@ require('lazy').setup({
878878
})
879879

880880
require('conform').formatters.golines = {
881-
prepend_args = { '-w -m 128 --no-reformat-tags' },
881+
prepend_args = { '--max-len=128' },
882882
}
883883
-- The line beneath this is called `modeline`. See `:help modeline`
884884
-- vim: ts=2 sts=2 sw=2 et

0 commit comments

Comments
 (0)