Add a keymap space-f to format buffer using conform (#817)

This works also for visual range selection
Copied from conform recipe:
https://github.com/stevearc/conform.nvim/blob/master/doc/recipes.md
pull/818/head
Damjan 9000 7 months ago committed by GitHub
parent 93fde0556e
commit 1175f6d25a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -600,6 +600,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)

Loading…
Cancel
Save