Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lua/guard/lint.lua
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function M.do_lint_single(buf, config)
end

if #data > 0 then
results = lint.parse(data, buf)
results = lint.parse(data, buf, fname, cwd)
Comment thread
mothzarella marked this conversation as resolved.
end

vim.schedule(function()
Expand All @@ -117,9 +117,9 @@ function M.do_lint_single(buf, config)
end)
end)
else
data = lint.fn(prev_lines)
data = lint.fn(prev_lines, fname, cwd)
Comment thread
mothzarella marked this conversation as resolved.
Comment thread
mothzarella marked this conversation as resolved.
if #data > 0 then
results = lint.parse(data, buf)
results = lint.parse(data, buf, fname, cwd)
Comment thread
mothzarella marked this conversation as resolved.
end

vim.schedule(function()
Expand Down
Loading