robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
7945732ed7
master
1" Vim filetype plugin file 2" Language: meson 3" License: VIM License 4" Maintainer: Liam Beguin <liambeguin@gmail.com> 5" Original Author: Laurent Pinchart <laurent.pinchart@ideasonboard.com> 6" Last Change: 2018 Nov 27 7" 2024 Jan 14 by Vim Project (browsefilter) 8" 2026 Jun 27 by Vim Project (normalize recommended style guard) 9 10if exists ( "b:did_ftplugin" ) |finish |endif 11let b: did_ftplugin = 1 12let s: keepcpo = & cpo 13set cpo & vim 14 15setlocal commentstring = #\ %s 16setlocal comments = :# 17setlocal formatoptions += croqlformatoptions -= t 18 19let b: undo_ftplugin = "setl com< cms< fo<" 20 21if get ( g:, 'meson_recommended_style' , 22 \get ( g:, 'filetype_recommended_style' , 1 )) 23setlocal expandtab 24setlocal shiftwidth = 2 25setlocal softtabstop = 2 26let b: undo_ftplugin .= " | setl et< sts< sw<" 27endif 28 29if exists ( "loaded_matchit" ) && ! exists ( "b:match_words" ) 30let b: match_words = '\<if\>:\<elif\>:\<else\>:\<endif\>,' . 31 \'\<foreach\>:\<break\>:\<continue\>:\<endforeach\>' 32let b: undo_ftplugin .= " | unlet! b:match_words" 33endif 34 35if ( has ( "gui_win32" ) || has ( "gui_gtk" )) && ! exists ( "b:browsefilter" ) 36let b: browsefilter = "Meson Build Files (meson.build)\tmeson.build\n" 37if has ( "win32" ) 38let b: browsefilter .= "All Files (*.*)\t*\n" 39else 40let b: browsefilter .= "All Files (*)\t*\n" 41endif 42let b: undo_ftplugin .= " | unlet! b:browsefilter" 43endif 44 45let & cpo = s: keepcpo 46unlet s: keepcpo