summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/compiler
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-12-22 08:13:20 +0800
committerGitHub <noreply@github.com>2025-12-22 08:13:20 +0800
commite1aceb0068be6563bad2cbf43e5ee549eddbceef (patch)
tree91d1ecfa67d1d60b2e7f811e753e6c68a004ee74 /runtime/compiler
parentd1189ea508c888ebf7468be3872c975e4ea264bb (diff)
vim-patch:e09ff34: runtime(ty): include ty compiler plugin (#37066)
closes: vim/vim#18960 https://github.com/vim/vim/commit/e09ff341294dbdd5c2db2342efc564ba34444571 Co-authored-by: Konfekt <Konfekt@users.noreply.github.com>
Diffstat (limited to 'runtime/compiler')
-rw-r--r--runtime/compiler/ty.vim19
1 files changed, 19 insertions, 0 deletions
diff --git a/runtime/compiler/ty.vim b/runtime/compiler/ty.vim
new file mode 100644
index 0000000000..5684b29f68
--- /dev/null
+++ b/runtime/compiler/ty.vim
@@ -0,0 +1,19 @@
+" Vim compiler file
+" Compiler: Ty (Python Type Checker)
+" Maintainer: @konfekt
+" Last Change: 2024 Dec 18
+
+if exists("current_compiler") | finish | endif
+let current_compiler = "ty"
+
+let s:cpo_save = &cpo
+set cpo&vim
+
+" CompilerSet makeprg=ty
+exe 'CompilerSet makeprg=' .. escape(
+ \ get(b:, 'ty_makeprg', get(g:, 'ty_makeprg', 'ty --no-progress --color=never'))
+ \ ..' check --output-format=concise', ' \|"')
+CompilerSet errorformat=%f:%l:%c:\ %m,%f:%l:\ %m,%f:%l:%c\ -\ %m,%f:
+
+let &cpo = s:cpo_save
+unlet s:cpo_save