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