diff --git a/init.lua b/init.lua index e35d8cb2fd..c0e280b6a4 100644 --- a/init.lua +++ b/init.lua @@ -644,6 +644,16 @@ require('lazy').setup({ { -- Autoformat 'stevearc/conform.nvim', + 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)