From abdd6ee860234e23f3c2d4b733ba067bbb4a4876 Mon Sep 17 00:00:00 2001 From: Mike Vink Date: Mon, 11 Dec 2023 09:22:24 +0100 Subject: add rust compiler format --- mut/neovim/compiler/nix.lua | 2 +- mut/neovim/compiler/rust.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 mut/neovim/compiler/rust.lua diff --git a/mut/neovim/compiler/nix.lua b/mut/neovim/compiler/nix.lua index 8c4ab2b..d012641 100644 --- a/mut/neovim/compiler/nix.lua +++ b/mut/neovim/compiler/nix.lua @@ -1 +1 @@ -vim.opt.errorformat = "%.%#at %f:%l:%c%.%#,%mat %f:%l:%c,%.%#error:%.%#'%f': %m," +vim.opt.errorformat = [[%.%#at %f:%l:%c%.%#,%mat %f:%l:%c,%.%#error:%.%#'%f': %m,]] diff --git a/mut/neovim/compiler/rust.lua b/mut/neovim/compiler/rust.lua new file mode 100644 index 0000000..272ae18 --- /dev/null +++ b/mut/neovim/compiler/rust.lua @@ -0,0 +1 @@ +vim.opt.errorformat=[[%-G,%-Gerror: aborting %.%#,%-Gerror: Could not compile %.%#,%Eerror: %m,%Eerror[E%n]: %m,%Wwarning: %m,%Inote: %m,%C %#--> %f:%l:%c,%E left:%m,%C right:%m %f:%l:%c,%Z]] -- cgit v1.2.3