Merge 'upstream' Add a keymap space-f to format buffer using conform

This commit is contained in:
Damjan 9000 2024-03-31 21:02:21 +02:00
commit 2cd884a025

View File

@ -1,6 +1,16 @@
return { return {
{ -- Autoformat { -- Autoformat
'stevearc/conform.nvim', 'stevearc/conform.nvim',
keys = {
{
'<leader>f',
function()
require('conform').format { async = true, lsp_fallback = true }
end,
mode = '',
desc = '[F]ormat buffer',
},
},
opts = { opts = {
notify_on_error = false, notify_on_error = false,
format_on_save = function(bufnr) format_on_save = function(bufnr)