fix: formatting
This commit is contained in:
+31
-31
@@ -71,33 +71,33 @@ vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = { "c" },
|
||||
callback = function()
|
||||
vim.o.errorformat = "%-Gmake: *** [Makefile:,"
|
||||
.. "%-Gg%\\?make[%*\\d]: *** [%f:%l:%m,"
|
||||
.. "%-Gg%\\?make: *** [%f:%l:%m,"
|
||||
.. "%-G%f:%l: (Each undeclared identifier is reported only once,"
|
||||
.. "%-G%f:%l: for each function it appears in.),"
|
||||
.. "%-GIn file included from %f:%l:%c:,"
|
||||
.. "%-GIn file included from %f:%l:%c\\,,"
|
||||
.. "%-GIn file included from %f:%l:%c,"
|
||||
.. "%-GIn file included from %f:%l,"
|
||||
.. "%-G%*[ ]from %f:%l:%c,"
|
||||
.. "%-G%*[ ]from %f:%l:,"
|
||||
.. "%-G%*[ ]from %f:%l\\,,"
|
||||
.. "%-G%*[ ]from %f:%l,"
|
||||
.. "%-G%f:%l:%c: note: '%*[^']' declared here,"
|
||||
.. "%D%*\\a[%*\\d]: Entering directory %*[`']%f',"
|
||||
.. "%X%*\\a[%*\\d]: Leaving directory %*[`']%f',"
|
||||
.. "%D%*\\a: Entering directory %*[`']%f',"
|
||||
.. "%X%*\\a: Leaving directory %*[`']%f',"
|
||||
.. "%DMaking %*\\a in %f,"
|
||||
.. "%f:%l:%c: %t%*[^:]: %m,"
|
||||
.. "%*[^:]: %f:%l: %m,"
|
||||
.. "%-G%.%#"
|
||||
.. "%-Gg%\\?make[%*\\d]: *** [%f:%l:%m,"
|
||||
.. "%-Gg%\\?make: *** [%f:%l:%m,"
|
||||
.. "%-G%f:%l: (Each undeclared identifier is reported only once,"
|
||||
.. "%-G%f:%l: for each function it appears in.),"
|
||||
.. "%-GIn file included from %f:%l:%c:,"
|
||||
.. "%-GIn file included from %f:%l:%c\\,,"
|
||||
.. "%-GIn file included from %f:%l:%c,"
|
||||
.. "%-GIn file included from %f:%l,"
|
||||
.. "%-G%*[ ]from %f:%l:%c,"
|
||||
.. "%-G%*[ ]from %f:%l:,"
|
||||
.. "%-G%*[ ]from %f:%l\\,,"
|
||||
.. "%-G%*[ ]from %f:%l,"
|
||||
.. "%-G%f:%l:%c: note: '%*[^']' declared here,"
|
||||
.. "%D%*\\a[%*\\d]: Entering directory %*[`']%f',"
|
||||
.. "%X%*\\a[%*\\d]: Leaving directory %*[`']%f',"
|
||||
.. "%D%*\\a: Entering directory %*[`']%f',"
|
||||
.. "%X%*\\a: Leaving directory %*[`']%f',"
|
||||
.. "%DMaking %*\\a in %f,"
|
||||
.. "%f:%l:%c: %t%*[^:]: %m,"
|
||||
.. "%*[^:]: %f:%l: %m,"
|
||||
.. "%-G%.%#"
|
||||
end,
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = "qf",
|
||||
callback = function ()
|
||||
callback = function()
|
||||
vim.wo.colorcolumn = "0"
|
||||
end,
|
||||
})
|
||||
@@ -106,15 +106,15 @@ vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = { "rust" },
|
||||
callback = function()
|
||||
vim.bo.errorformat = "%Enote: test %m at %f:%l:%c,"
|
||||
.. "%E%\\%%(%.%#panicked%\\)%\\@=%m at %f:%l:%c:,"
|
||||
.. "%-Gerror: test failed\\, %.%#,"
|
||||
.. "%-G%*[^:]: %.%# generated %*\\d %.%#,"
|
||||
.. "%-Gnote: run with `RUST_BACKTRACE=%.%#,"
|
||||
.. "%-G%\\s%#Running%.%#,"
|
||||
.. vim.bo.errorformat:gsub(
|
||||
"%%E left:%%m,%%C right:%%m %%f:%%l:%%c,",
|
||||
""
|
||||
)
|
||||
.. "%E%\\%%(%.%#panicked%\\)%\\@=%m at %f:%l:%c:,"
|
||||
.. "%-Gerror: test failed\\, %.%#,"
|
||||
.. "%-G%*[^:]: %.%# generated %*\\d %.%#,"
|
||||
.. "%-Gnote: run with `RUST_BACKTRACE=%.%#,"
|
||||
.. "%-G%\\s%#Running%.%#,"
|
||||
.. vim.bo.errorformat:gsub(
|
||||
"%%E left:%%m,%%C right:%%m %%f:%%l:%%c,",
|
||||
""
|
||||
)
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user