nvim overhaul

This commit is contained in:
Grace Yoder 2026-03-23 19:19:54 -04:00
parent a34e41df2e
commit 70a1581228
No known key found for this signature in database
13 changed files with 319 additions and 305 deletions

View file

@ -1,18 +1,19 @@
local lint = require("lint")
local errorformat = "%WWARNING: %m,%Z%\\s%\\s%\\s%\\s%\\s%\\s%\\s%\\s%\\sat (stdin) from line %l column %c to line %e column %k"
local errorformat =
"%WWARNING: %m,%Z%\\s%\\s%\\s%\\s%\\s%\\s%\\s%\\s%\\sat (stdin) from line %l column %c to line %e column %k"
lint.linters.westwood = {
cmd = '/homes/kkasad/share/westwood',
stdin = true,
args = {'-f', 'machine', '-'},
args = { '-f', 'machine', '-' },
stream = both,
ignore_exitcode = false,
env = nil,
parser = require('lint.parser').from_errorformat(errorformat)
}
lint.linters_by_ft.c = {"westwood", "clangtidy"}
lint.linters_by_ft.cpp = {"westwood"}
lint.linters_by_ft.c = { "westwood", "clangtidy" }
lint.linters_by_ft.cpp = { "westwood" }
vim.list_extend(lint.linters_by_ft.c, { "westwood", "clangtidy" })
vim.list_extend(lint.linters_by_ft.cpp, { "westwood" })