Merge pull request #1 from nvim-lua/master

Pull in latest changes from master
This commit is contained in:
Jonas Hagberg 2024-04-03 09:23:34 +02:00 committed by GitHub
commit a4db3b52f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 16 additions and 7 deletions

View file

@ -600,6 +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',
},
},
opts = {
notify_on_error = false,
format_on_save = function(bufnr)