Преглед на файлове

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