Skip to content

Commit cc06c1c

Browse files
authored
builtins/vale: allow per directory configuration override (#158)
1 parent 0d1b3fa commit cc06c1c

File tree

1 file changed

+3
-0
lines changed
  • lua/null-ls/builtins/diagnostics

1 file changed

+3
-0
lines changed

lua/null-ls/builtins/diagnostics/vale.lua

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ return h.make_builtin({
2020
command = "vale",
2121
format = "json",
2222
to_stdin = true,
23+
cwd = function(params)
24+
return vim.fn.fnamemodify(params.bufname, ":h")
25+
end,
2326
args = function(params)
2427
return { "--no-exit", "--output", "JSON", "--ext", "." .. vim.fn.fnamemodify(params.bufname, ":e") }
2528
end,

0 commit comments

Comments
 (0)