mirror of
https://github.com/neovim/neovim.git
synced 2025-12-25 15:48:55 +00:00
closes: vim/vim#18960
e09ff34129
Co-authored-by: Konfekt <Konfekt@users.noreply.github.com>
20 lines
542 B
VimL
20 lines
542 B
VimL
" 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
|