gleam.vim (1041B)
1 " Vim filetype plugin file 2 " Language: Gleam 3 " Maintainer: Kirill Morozov <kirill@robotix.pro> 4 " Previous Maintainer: Trilowy (https://github.com/trilowy) 5 " Based On: https://github.com/gleam-lang/gleam.vim 6 " Last Change: 2025 Apr 21 7 " 2026 Feb 13 by Vim Project (remove 'formatprg' #19108) 8 " 2026 Jun 27 by Vim Project (normalize recommended style guard) 9 10 if exists('b:did_ftplugin') 11 finish 12 endif 13 let b:did_ftplugin = 1 14 15 setlocal comments=:////,:///,:// 16 setlocal commentstring=//\ %s 17 setlocal suffixesadd=.gleam 18 let b:undo_ftplugin = "setlocal com< cms< sua<" 19 20 if get(g:, 'gleam_recommended_style', 21 \ get(g:, 'filetype_recommended_style', 1)) 22 setlocal expandtab 23 setlocal shiftwidth=2 24 setlocal smartindent 25 setlocal softtabstop=2 26 setlocal tabstop=2 27 let b:undo_ftplugin ..= " | setlocal et< sw< si< sts< ts<" 28 endif 29 30 if !exists('current_compiler') 31 compiler gleam_build 32 let b:undo_ftplugin ..= "| compiler make" 33 endif 34 35 " vim: sw=2 sts=2 et