Browse Source

nixpkgs/neovim: pass full path to dprint formatter

Thomas Dy 3 tháng trước cách đây
mục cha
commit
231ae19f35
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      .config/nixpkgs/neovim/plugins.lua

+ 1 - 1
.config/nixpkgs/neovim/plugins.lua

@@ -304,7 +304,7 @@ local js = {
       ".dprint.json",
       ".dprint.jsonc",
     },
-    formatter = formatters.shell({ cmd = { "dprint", "fmt", "--stdin", "%" }}),
+    formatter = formatters.shell({ cmd = { "dprint", "fmt", "--stdin", "%:p" }}),
   }),
 }