robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
7ed6966023
master
1" Vim filetype plugin file 2" Language: Kotlin 3" Maintainer: Alexander Udalov 4" URL: https://github.com/udalov/kotlin-vim 5" Last Change: 7 November 2021 6" 2024 Jan 14 by Vim Project (browsefilter) 7 8if exists ( 'b:did_ftplugin' ) |finish |endif 9let b: did_ftplugin = 1 10 11let s: save_cpo = & cpo 12set cpo & vim 13 14setlocal comments = sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:// 15setlocal commentstring = //\ %s 16 17setlocal formatoptions -= tformatoptions += croqnl 18silent ! setlocal formatoptions += j 19 20setlocal includeexpr = substitute (v:fname,'\\.','/','g') 21setlocal suffixesadd = .kt 22 23let b: undo_ftplugin = "setlocal comments< commentstring< " . 24 \"formatoptions< includeexpr< suffixesadd<" 25 26if ( has ( "gui_win32" ) || has ( "gui_gtk" )) && ! exists ( "b:browsefilter" ) 27let b: browsefilter = "Kotlin Source Files (*.kt, *kts)\t*.kt;*.kts\n" 28if has ( "win32" ) 29let b: browsefilter .= "All Files (*.*)\t*\n" 30else 31let b: browsefilter .= "All Files (*)\t*\n" 32endif 33let b: undo_ftplugin .= " | unlet! b:browsefilter" 34endif 35 36let & cpo = s: save_cpo 37unlet s: save_cpo