mirror of
https://github.com/dam9000/kickstart-modular.nvim.git
synced 2025-12-28 09:13:59 +00:00
Merge 'upstream' Add a keymap space-f to format buffer using conform
This commit is contained in:
commit
2cd884a025
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user