mirror of
https://github.com/gyoder/dots.git
synced 2026-02-27 17:03:45 +00:00
added existing nvim config
This commit is contained in:
parent
d6d6dab380
commit
bdf3cdecda
24 changed files with 996 additions and 0 deletions
20
vim/.config/nvim/lua/westwood-lint.lua
Normal file
20
vim/.config/nvim/lua/westwood-lint.lua
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
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"
|
||||
lint.linters.westwood = {
|
||||
cmd = '/homes/kkasad/share/westwood',
|
||||
stdin = true,
|
||||
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"}
|
||||
vim.list_extend(lint.linters_by_ft.c, { "westwood", "clangtidy" })
|
||||
vim.list_extend(lint.linters_by_ft.cpp, { "westwood" })
|
||||
|
||||
local ns = lint.get_namespace("westwood")
|
||||
vim.diagnostic.config({ virtual_text = true }, ns)
|
||||
Loading…
Add table
Add a link
Reference in a new issue