We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df77810 commit 231ed89Copy full SHA for 231ed89
lua/null-ls/builtins/formatting/forge_fmt.lua
@@ -1,4 +1,5 @@
1
local h = require("null-ls.helpers")
2
+local u = require("null-ls.utils")
3
local methods = require("null-ls.methods")
4
5
local FORMATTING = methods.internal.FORMATTING
@@ -17,6 +18,9 @@ return h.make_builtin({
17
18
"fmt",
19
"$FILENAME",
20
},
21
+ cwd = h.cache.by_bufnr(function(params)
22
+ return u.root_pattern("foundry.toml")(params.bufname)
23
+ end),
24
to_stdin = false,
25
to_temp_file = true,
26
0 commit comments