Prechádzať zdrojové kódy

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.
Vladislav Grechannik 2 rokov pred
rodič
commit
b36d84ddf0
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      init.lua

+ 2 - 1
init.lua

@@ -626,7 +626,8 @@ require('lazy').setup({
 
   { -- Autoformat
     'stevearc/conform.nvim',
-    lazy = false,
+    event = { 'BufWritePre' },
+    cmd = { 'ConformInfo' },
     keys = {
       {
         '<leader>f',