From 4e5ed5d043a081a9c3a182cc895cb0f3d53d26da Mon Sep 17 00:00:00 2001 From: Jonas Hagberg Date: Wed, 3 Apr 2024 10:18:46 +0200 Subject: [PATCH] Fix autoformat --- init.lua | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/init.lua b/init.lua index 87f6931c..ab15aca9 100644 --- a/init.lua +++ b/init.lua @@ -600,17 +600,17 @@ require('lazy').setup({ { -- Autoformat 'stevearc/conform.nvim', - lazy = false, - keys = { - { - 'f', - function() - require('conform').format { async = true, lsp_fallback = true } - end, - mode = '', - desc = '[F]ormat buffer', - }, - }, + lazy = true, + -- keys = { + -- { + -- 'f', + -- function() + -- require('conform').format { async = true, lsp_fallback = true } + -- end, + -- mode = '', + -- desc = '[F]ormat buffer', + -- }, + -- }, opts = { notify_on_error = false, format_on_save = function(bufnr) @@ -878,7 +878,7 @@ require('lazy').setup({ }) require('conform').formatters.golines = { - prepend_args = { '-w -m 128 --no-reformat-tags' }, + prepend_args = { '--max-len=128' }, } -- The line beneath this is called `modeline`. See `:help modeline` -- vim: ts=2 sts=2 sw=2 et