mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-01 14:29:40 +00:00
17 lines
473 B
VimL
17 lines
473 B
VimL
" agda related autocommands
|
|
|
|
function! CornelisLoadWrapper()
|
|
if exists(":CornelisLoad") ==# 2
|
|
CornelisLoad
|
|
endif
|
|
endfunction
|
|
|
|
au BufReadPre *.agda call CornelisLoadWrapper()
|
|
au BufReadPre *.lagda* call CornelisLoadWrapper()
|
|
|
|
au QuitPre *.agda :CornelisCloseInfoWindows
|
|
au QuitPre *.lagda* :CornelisCloseInfoWindows
|
|
|
|
" autoreload at file write
|
|
au BufWritePost *.agda execute "normal! :CornelisLoad\<CR>"
|
|
au BufWritePost *.lagda* execute "normal! :CornelisLoad\<CR>"
|