From 866a7d0408a0208abbb4b6a651147469cc59d4d8 Mon Sep 17 00:00:00 2001 From: Ivar Fatland Date: Wed, 23 Sep 2026 21:33:51 +0200 Subject: [PATCH] add basedpyright to vim config --- vim/.vim/compiler/basedpyright.vim | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 vim/.vim/compiler/basedpyright.vim diff --git a/vim/.vim/compiler/basedpyright.vim b/vim/.vim/compiler/basedpyright.vim new file mode 100644 index 0000000..277806c --- /dev/null +++ b/vim/.vim/compiler/basedpyright.vim @@ -0,0 +1,15 @@ +if exists("current_compiler") | finish | endif +let current_compiler = "basedpyright" +let s:cpo_save = &cpo +set cpo&vim + +CompilerSet makeprg=basedpyright +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