Fix autoformat

This commit is contained in:
Jonas Hagberg 2024-04-03 10:18:46 +02:00
parent a4db3b52f7
commit 4e5ed5d043
1 changed files with 12 additions and 12 deletions

View File

@ -600,17 +600,17 @@ require('lazy').setup({
{ -- Autoformat
'stevearc/conform.nvim',
lazy = false,
keys = {
{
'<leader>f',
function()
require('conform').format { async = true, lsp_fallback = true }
end,
mode = '',
desc = '[F]ormat buffer',
},
},
lazy = true,
-- keys = {
-- {
-- '<leader>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