vis-lint

vis plugin for linting code
git clone anongit@rnpnr.xyz:vis-lint.git
Log | Files | Refs | Feed | README | LICENSE

Commit: e3d0bfe8a50a139bf4de1fc5e80775980fce8e5c
Parent: 72dd0af52d25b4b2bf40c412936077b57308dc91
Author: Randy Palamar
Date:   Thu, 13 Apr 2023 17:39:32 -0600

don't append filename to command

the file is piped from stdin

Diffstat:
Minit.lua | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/init.lua b/init.lua @@ -1,7 +1,7 @@ vis:command_register("lint", function() local linters = {} linters["bash"] = "shellcheck -" - linters["lua"] = "luacheck --exclude-files * --no-color -" + linters["lua"] = "luacheck --no-color -" linters["man"] = "mandoc -T lint" local cmd = linters[vis.win.syntax] @@ -11,8 +11,7 @@ vis:command_register("lint", function() end local file = vis.win.file - local _, ostr, estr = vis:pipe(file, {start = 0, finish = file.size}, - cmd .. " " .. file.name) + local _, ostr, estr = vis:pipe(file, {start = 0, finish = file.size}, cmd) if estr then vis:message(estr) return false