瀏覽代碼

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 },
       },
     },
   },