소스 검색

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 년 전
부모
커밋
b36d84ddf0
1개의 변경된 파일과 2개의 추가작업 그리고 1개의 파일을 삭제
  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',