diff options
| author | gyoder <70408179+gyoder@users.noreply.github.com> | 2025-06-14 11:41:23 +0200 |
|---|---|---|
| committer | gyoder <70408179+gyoder@users.noreply.github.com> | 2025-06-14 11:41:23 +0200 |
| commit | bdf3cdecda3d112b14e3ceb50ce4f88862813270 (patch) | |
| tree | aec5cd7764ff726740426dd9e4897e8cdcbf97b6 /vim/.config/nvim/lua/westwood-lint.lua | |
| parent | d6d6dab3806f88e27990936e83c7b74d08215a9d (diff) | |
added existing nvim config
Diffstat (limited to 'vim/.config/nvim/lua/westwood-lint.lua')
| -rw-r--r-- | vim/.config/nvim/lua/westwood-lint.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vim/.config/nvim/lua/westwood-lint.lua b/vim/.config/nvim/lua/westwood-lint.lua new file mode 100644 index 0000000..0ffc8d8 --- /dev/null +++ b/vim/.config/nvim/lua/westwood-lint.lua @@ -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) |
