I broke up with neovim....vim is my best friend now

This commit is contained in:
LinlyBoi
2023-04-30 08:14:07 +03:00
parent 0d185449c5
commit 4a4a6b1e81
5245 changed files with 468325 additions and 25 deletions

View File

@@ -0,0 +1,43 @@
"============================================================================
"File: ponyc.vim
"Description: Syntax checking plugin for syntastic.vim
"Maintainer: Earnestly
"License: This program is free software. It comes without any warranty,
" to the extent permitted by applicable law.
"
"============================================================================
if exists('g:loaded_syntastic_pony_ponyc_checker')
finish
endif
let g:loaded_syntastic_pony_ponyc_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_pony_ponyc_GetLocList() dict
" This is currently a hack. `ponyc` itself uses the project directory as
" the target to build. Using expand like this fetches the parent
" directory of the current file which might cause supurious errors on
" package imports if the current file is nested under a sub-directory.
let n = expand('%:p:h')
let makeprg = self.makeprgBuild({
\ 'args': '--pass=expr',
\ 'fname': n})
let errorformat =
\ '%f:%l:%c: %m'
return SyntasticMake({
\ 'makeprg': makeprg,
\ 'errorformat': errorformat })
endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'pony',
\ 'name': 'ponyc'})
let &cpo = s:save_cpo
unlet s:save_cpo