Skip to content

Commit

Permalink
builtins/vale: allow per directory configuration override (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhomer authored Jul 15, 2024
1 parent 0d1b3fa commit cc06c1c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/null-ls/builtins/diagnostics/vale.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ return h.make_builtin({
command = "vale",
format = "json",
to_stdin = true,
cwd = function(params)
return vim.fn.fnamemodify(params.bufname, ":h")
end,
args = function(params)
return { "--no-exit", "--output", "JSON", "--ext", "." .. vim.fn.fnamemodify(params.bufname, ":e") }
end,
Expand Down

0 comments on commit cc06c1c

Please sign in to comment.