summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorVladislav Grechannik <52157081+VlaDexa@users.noreply.github.com>2024-07-21 22:34:17 +0200
committerGitHub <noreply@github.com>2024-07-21 16:34:17 -0400
commitb36d84ddf0b88ab71593d25bf68b48cae9d578eb (patch)
treefbbf6a4dcd8beeb9cc20a4dffbc3428144788f65 /init.lua
parentc405d3fd4f5e105c3c7a43dcddcb96f01ca70dee (diff)
Make conform.nvim be lazy-loadable again (#977)
The PR that disabled lazy loading (#818) was to fix plugin not being loaded before write. This sets up lazy to load conform before write.
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 624e23d..de4264b 100644
--- a/init.lua
+++ b/init.lua
@@ -626,7 +626,8 @@ require('lazy').setup({
{ -- Autoformat
'stevearc/conform.nvim',
- lazy = false,
+ event = { 'BufWritePre' },
+ cmd = { 'ConformInfo' },
keys = {
{
'<leader>f',