robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

zeertzjqvim-patch:84baba3: runtime(compiler): do not override &l:makeprg on :compiler! (#36470)af5ac171bd

master
537 B19 linesraw
1" Vim compiler file
2" Compiler:	Mypy (Python static checker)
3" Maintainer:   @Konfekt
4" Last Change:	2025 Nov 06
5
6if exists("current_compiler") | finish | endif
7let current_compiler = "mypy"
8
9let s:cpo_save = &cpo
10set cpo&vim
11
12" CompilerSet makeprg=mypy
13exe 'CompilerSet makeprg=' .. escape('mypy --show-column-numbers '
14      \ ..get(b:, 'mypy_makeprg_params', get(g:, 'mypy_makeprg_params', '--strict --ignore-missing-imports')),
15      \ ' \|"')
16CompilerSet errorformat=%f:%l:%c:\ %t%*[^:]:\ %m
17
18let &cpo = s:cpo_save
19unlet s:cpo_save