mirror of
https://github.com/neovim/neovim.git
synced 2026-08-19 02:24:46 -05:00
closes: vim/vim#19354 https://github.com/vim/vim/commit/d15c71803873f9165c931af31d86473329682b19 Co-authored-by: Mao-Yining <mao.yining@outlook.com>
26 lines
640 B
VimL
26 lines
640 B
VimL
" Vim compiler file
|
|
" Compiler: Pyright (Python Type Checker)
|
|
" Maintainer: @konfekt
|
|
" Last Change: 2025 Feb 7
|
|
|
|
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
|