From 186e95d6b5c8e271e8766052922151e65bf92872 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Mon, 6 May 2024 02:33:10 +0200 Subject: [PATCH] feat(zig): fix errorformat --- lua/core/autocommands.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lua/core/autocommands.lua b/lua/core/autocommands.lua index b751632..cbd4587 100644 --- a/lua/core/autocommands.lua +++ b/lua/core/autocommands.lua @@ -6,6 +6,14 @@ vim.api.nvim_create_autocmd("FileType", { end, }) +vim.api.nvim_create_autocmd("FileType", { + desc = "Fix parsing compile errors into quickfixlist", + pattern = "zig", + callback = function() + vim.bo.errorformat = '%f:%l:%c: %t%.%#: %m,%-G%.%#' + end, +}) + vim.api.nvim_create_autocmd({ "BufReadPost" }, { desc = "Return cursor to last position when re-opening a buffer", pattern = "*",