swap pyright to basedpyright

This commit is contained in:
Ivar Fatland
2026-06-15 12:02:12 +02:00
parent 1db86639d4
commit e5d9872b95
3 changed files with 16 additions and 26 deletions
@@ -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
-25
View File
@@ -1,25 +0,0 @@
" 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
+1 -1
View File
@@ -345,7 +345,7 @@ end
do
local compiler_mapping = {
dotnet={'*.csproj', '*.sln'},
pyright={'requirements.txt', 'pyproject.toml'},
basedpyright={'requirements.txt', 'pyproject.toml'},
go={'go.mod'},
gcc={'*.c'},
['g++']={'*.cpp'},