robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
66b2e7da8a
master
1" Vim compiler file 2" Compiler: Pyright (Python Type Checker) 3" Maintainer: @konfekt 4" Last Change: 2025 Feb 7 5 6if exists ( "current_compiler" ) |finish |endif 7let current_compiler = "pyright" 8 9let s: cpo_save = & cpo 10set cpo & vim 11 12" CompilerSet makeprg=pyright 13" CompilerSet makeprg=basedpyright 14exe 'CompilerSet makeprg=' .. escape ( 15 \get ( b:, 'pyright_makeprg' , get ( g:, 'pyright_makeprg' , 'pyright' )), 16 \' \|"' ) 17CompilerSet errorformat= 18 \%E%f:%l:%c\ -\ error:\ %m, 19 \%W%f:%l:%c\ -\ warning:\ %m, 20 \%N%f:%l:%c\ -\ note:\ %m, 21 \%C[\ \t]\ %.%#, 22 \%-G%.%# 23 24let & cpo = s: cpo_save 25unlet s: cpo_save