mirror of
https://github.com/gyoder/dots.git
synced 2026-04-05 13:32:53 +00:00
nvim overhaul
This commit is contained in:
parent
a34e41df2e
commit
70a1581228
13 changed files with 319 additions and 305 deletions
|
|
@ -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" })
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue