Jelajahi Sumber

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

Brandon Clark 2 tahun lalu
induk
melakukan
1cef2325e0
1 mengubah file dengan 2 tambahan dan 3 penghapusan
  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 },
       },
     },
   },