My nvim configuration
| 1 | vim.cmd [[ |
| 2 | set efm= |
| 3 | |
| 4 | "Logging formatter for the following format |
| 5 | "%(asctime)s %(levelname)s %(pathname)s:%(lineno)s %(message)s |
| 6 | set efm+=%E%.%#ERROR\ %f:%l\ %m |
| 7 | |
| 8 | "Snag the django test error itself |
| 9 | set efm+=%EERROR:\ %o\ (%m) |
| 10 | |
| 11 | "Ignore the system path, add more system paths for python if needed |
| 12 | set efm+=%-G%.%#miniconda%.%# |
| 13 | |
| 14 | "Extract the error message |
| 15 | set efm+=%E%.%#File\ \"%f\"%*[^l]line\ %l%.%# |
| 16 | set efm+=%-Z%*[-] |
| 17 | set efm+=%+C%\\w%.%# |
| 18 | set efm+=%-C%.%# |
| 19 | |
| 20 | "Ignore any leftover text without any error messages |
| 21 | set efm+=%-G%.%# |
| 22 | set efm+=%-G%.%.%# |
| 23 | set efm+=%-G%p |
| 24 | ]] |