Skip to content

Commit

Permalink
feat: support per-linter cwd as function
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil committed Oct 3, 2024
1 parent 27f44d1 commit 6f3b8a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/lint.lua
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,9 @@ function M.lint(linter, opts)
-- pop up shortly.
detached = not iswin
}
if type(linter_opts.cwd) == 'function' then
linter_opts.cwd = linter_opts.cwd()
end
-- prevents cmd.exe taking over the tab title
if iswin then
linter_opts.hide = true
Expand Down

0 comments on commit 6f3b8a3

Please sign in to comment.