Skip to content

Commit 2e8dc74

Browse files
VlaDexakiritowu
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 7336422 commit 2e8dc74

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
@@ -666,7 +666,8 @@ require('lazy').setup({
666666

667667
{ -- Autoformat
668668
'stevearc/conform.nvim',
669-
lazy = false,
669+
event = { 'BufWritePre' },
670+
cmd = { 'ConformInfo' },
670671
keys = {
671672
{
672673
'<leader>f',

0 commit comments

Comments
 (0)