grace/dots

dotfiles/nix configs

git clone https://git.gae.moe/grace/dots

Grace Yoderhx and vcs changesddf0c79

wafrn-testing
708 B21 linesraw
1local lint = require("lint")
2
3local errorformat =
4"%WWARNING: %m,%Z%\\s%\\s%\\s%\\s%\\s%\\s%\\s%\\s%\\sat (stdin) from line %l column %c to line %e column %k"
5lint.linters.westwood = {
6  cmd = '/homes/kkasad/share/westwood',
7  stdin = true,
8  args = { '-f', 'machine', '-' },
9  stream = both,
10  ignore_exitcode = false,
11  env = nil,
12  parser = require('lint.parser').from_errorformat(errorformat)
13}
14
15lint.linters_by_ft.c = { "westwood", "clangtidy" }
16lint.linters_by_ft.cpp = { "westwood" }
17vim.list_extend(lint.linters_by_ft.c, { "westwood", "clangtidy" })
18vim.list_extend(lint.linters_by_ft.cpp, { "westwood" })
19
20local ns = lint.get_namespace("westwood")
21vim.diagnostic.config({ virtual_text = true }, ns)