nvim mypy compiler
change
commit 1d85bd7af20611bb7879110ea419b01acec63d3c
author Alpha Chen <alpha.chen@brilliant.org>
date
parent 14337761
diff --git a/.config/nvim/compiler/mypy.vim b/.config/nvim/compiler/mypy.vim
new file mode 100644
index 00000000..ce460bee
--- /dev/null
+++ b/.config/nvim/compiler/mypy.vim
@@ -0,0 +1,26 @@
+" https://github.com/Konfekt/vim-compilers/blob/master/compiler/mypy.vim
+"
+" Maintainer: Enno Nagel
+" Email:      enno.nagel+vim@gmail.com
+"
+" This is free and unencumbered software released into the public domain.
+"
+" Anyone is free to copy, modify, publish, use, compile, sell, or
+" distribute this software, either in source code form or as a compiled
+" binary, for any purpose, commercial or non-commercial, and by any
+" means.
+
+if exists("current_compiler") | finish | endif
+let current_compiler = "mypy"
+
+let s:cpo_save = &cpo
+set cpo&vim
+
+setlocal makeprg=mypy\ --show-column-numbers
+setlocal errorformat=%f:%l:%c:\ %t%*[^:]:\ %m
+
+silent CompilerSet makeprg
+silent CompilerSet errorformat
+
+let &cpo = s:cpo_save
+unlet s:cpo_save