Merge branch 'nvim-lua:master' into master

This commit is contained in:
Dmitry O 2024-03-31 22:18:16 +02:00 committed by GitHub
commit 79df86ff35
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 0 deletions

View File

@ -649,6 +649,16 @@ require('lazy').setup({
{ -- Autoformat
'stevearc/conform.nvim',
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)