Fix autoformat

pull/1270/head
Jonas Hagberg 1 year ago
parent a4db3b52f7
commit 4e5ed5d043

@ -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

Loading…
Cancel
Save