robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
7945732ed7
master
1" Vim filetype plugin. 2" Language: Haredoc (Hare documentation format) 3" Maintainer: Amelia Clarke <selene@perilune.dev> 4" Last Updated: 2024-05-02 5" 2026 Jun 27 by Vim Project (normalize recommended style guard) 6" Upstream: https://git.sr.ht/~selene/hare.vim 7 8if exists ( 'b:did_ftplugin' ) 9finish 10endif 11let b: did_ftplugin = 1 12 13let s: cpo_save = & cpo 14set cpo & vim 15 16" Formatting settings. 17setlocal comments = :\ 18setlocal formatlistpat = ^\ \\?-\ 19setlocal formatoptions += tnljformatoptions -= cformatoptions -= q 20 21" Search for Hare modules. 22setlocal includeexpr = hare #FindModule(v:fname) 23setlocal isfname += : 24setlocal suffixesadd = .ha 25 26" Add HAREPATH to the default search paths. 27setlocal path -= /usr/include,, 28let & l: path .= ',' .. hare#GetPath () .. ',,' 29 30let b: undo_ftplugin = 'setl com< flp< fo< inex< isf< pa< sua<' 31 32" Follow the Hare style guide by default. 33if get ( g:, 'hare_recommended_style' , get ( g:, 'filetype_recommended_style' , 1 )) 34setlocal noexpandtab 35setlocal shiftwidth = 0 36setlocal softtabstop = 0 37setlocal tabstop = 8 38setlocal textwidth = 80 39let b: undo_ftplugin .= ' et< sts< sw< ts< tw<' 40endif 41 42let & cpo = s: cpo_save 43unlet s: cpo_save 44 45" vim: et sts=2 sw=2 ts=8