mirror of
https://github.com/vim/vim.git
synced 2026-02-01 11:34:23 +01:00
closes: #19017 Signed-off-by: Konfekt <Konfekt@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
26 lines
640 B
VimL
26 lines
640 B
VimL
" Vim compiler file
|
|
" Compiler: Pyright (Python Type Checker)
|
|
" Maintainer: @konfekt
|
|
" Last Change: 2025 Dec 26
|
|
|
|
if exists("current_compiler") | finish | endif
|
|
let current_compiler = "pyright"
|
|
|
|
let s:cpo_save = &cpo
|
|
set cpo&vim
|
|
|
|
" CompilerSet makeprg=pyright
|
|
" CompilerSet makeprg=basedpyright
|
|
exe 'CompilerSet makeprg=' .. escape(
|
|
\ get(b:, 'pyright_makeprg', get(g:, 'pyright_makeprg', 'pyright')),
|
|
\ ' \|"')
|
|
CompilerSet errorformat=
|
|
\%E%f:%l:%c\ -\ error:\ %m,
|
|
\%W%f:%l:%c\ -\ warning:\ %m,
|
|
\%N%f:%l:%c\ -\ note:\ %m,
|
|
\%C[ \t]\ %.%#,
|
|
\%-G%.%#
|
|
|
|
let &cpo = s:cpo_save
|
|
unlet s:cpo_save
|