Browse Source

nixpkgs/neovim: pass full path to dprint formatter

Thomas Dy 3 months ago
parent
commit
231ae19f35
1 changed files with 1 additions and 1 deletions
  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" }}),
   }),
 }