Skip to content

Commit a989e3b

Browse files
VlaDexanikhil-vemula
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 5d0b92a commit a989e3b

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

635635
{ -- Autoformat
636636
'stevearc/conform.nvim',
637-
lazy = false,
637+
event = { 'BufWritePre' },
638+
cmd = { 'ConformInfo' },
638639
keys = {
639640
{
640641
'<leader>f',

0 commit comments

Comments
 (0)