robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
47aef025a7
master
1" Vim compiler file 2" Compiler: Ruff (Python linter) 3" Maintainer: @pbnj-dragon 4" Last Change: 2024 Nov 07 5" 2024 Nov 19 by the Vim Project (properly escape makeprg setting) 6" 2025 Nov 06 by the Vim Project (do not set buffer-local makeprg) 7" 2024 Dec 24 by the Vim Project (mute Found messages) 8 9if exists ( "current_compiler" ) |finish |endif 10let current_compiler = "ruff" 11 12let s: cpo_save = & cpo 13set cpo & vim 14 15" CompilerSet makeprg=ruff 16exe 'CompilerSet makeprg=' .. escape ( 'ruff check --output-format=concise ' 17 \.. get ( b:, 'ruff_makeprg_params' , get ( g:, 'ruff_makeprg_params' , '--preview' )), 18 \' \|"' ) 19CompilerSet errorformat=%f:%l:%c:\ %m,%f:%l:\ %m,%f:%l:%c\ -\ %m,%f: 20CompilerSet errorformat+=%-GFound\ %.%# 21 22let & cpo = s: cpo_save 23unlet s: cpo_save