Skip to content

Commit b8a4605

Browse files
VlaDexanitdn
authored andcommitted
Make conform.nvim be lazy-loadable again (nvim-lua#977)
The PR that disabled lazy loading (nvim-lua#818) was to fix plugin not being loaded before write. This sets up lazy to load conform before write.
1 parent 05d73d1 commit b8a4605

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

init.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,8 @@ require('lazy').setup({
653653

654654
{ -- Autoformat
655655
'stevearc/conform.nvim',
656-
lazy = false,
656+
event = { 'BufWritePre' },
657+
cmd = { 'ConformInfo' },
657658
keys = {
658659
{
659660
'<leader>f',

0 commit comments

Comments
 (0)