소스 검색

Modify conform comments to prevent deprecation warning when used (#1057)

Brandon Clark 2 년 전
부모
커밋
1cef2325e0
1개의 변경된 파일과 2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      init.lua

+ 2 - 3
init.lua

@@ -653,9 +653,8 @@ require('lazy').setup({
         -- Conform can also run multiple formatters sequentially
         -- python = { "isort", "black" },
         --
-        -- You can use a sub-list to tell conform to run *until* a formatter
-        -- is found.
-        -- javascript = { { "prettierd", "prettier" } },
+        -- You can use 'stop_after_first' to run the first available formatter from the list
+        -- javascript = { "prettierd", "prettier", stop_after_first = true },
       },
     },
   },