robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
0bb2f5cc08
master
1" Vim filetype plugin file 2" Language: Scheme (R7RS) 3" Last Change: 2024 Jun 21 4" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring') 5" Author: Evan Hanson <evhan@foldling.org> 6" Maintainer: Evan Hanson <evhan@foldling.org> 7" Previous Maintainer: Sergey Khorev <sergey.khorev@gmail.com> 8" Repository: https://git.foldling.org/vim-scheme.git 9" URL: https://foldling.org/vim/ftplugin/scheme.vim 10 11if exists ( 'b:did_ftplugin' ) 12finish 13endif 14 15let s: cpo = & cpo 16set cpo & vim 17 18setl lisp 19setl comments = :;;;;,:;;;,:;;,:;,sr:#\|,mb:\|,ex:\|# 20setl commentstring = ;\ %s 21setl define = ^\\s*(def\\k* 22setl iskeyword = 33,35-39,42-43,45-58,60-90,94,95,97-122,126 23setl formatoptions -= t 24 25let b: undo_ftplugin = 'setl lisp< comments< commentstring< define< iskeyword< formatoptions<' 26 27setl lispwords += case 28setl lispwords += define 29setl lispwords += define-library 30setl lispwords += define-record-type 31setl lispwords += define-syntax 32setl lispwords += define-values 33setl lispwords += do 34setl lispwords += guard 35setl lispwords += lambda 36setl lispwords += let 37setl lispwords += let* 38setl lispwords += let*-values 39setl lispwords += let-syntax 40setl lispwords += let-values 41setl lispwords += letrec 42setl lispwords += letrec* 43setl lispwords += letrec-syntax 44setl lispwords += parameterize 45setl lispwords += set! 46setl lispwords += syntax-rules 47setl lispwords += unless 48setl lispwords += when 49 50let b: undo_ftplugin = b: undo_ftplugin . ' lispwords<' 51 52let b: did_scheme_ftplugin = 1 53 54if exists ( 'b:is_chicken' ) || exists ( 'g:is_chicken' ) 55runtime ! ftplugin/chicken[.]{vim,lua} 56endif 57 58unlet b: did_scheme_ftplugin 59let b: did_ftplugin = 1 60let & cpo = s: cpo 61unlet s: cpo