robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

zeertzjqMerge pull request #40472 from zeertzjq/vim-1f337327945732ed7

master
1.0 KiB35 linesraw
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
10if exists('b:did_ftplugin')
11  finish
12endif
13let b:did_ftplugin = 1
14
15setlocal comments=:////,:///,://
16setlocal commentstring=//\ %s
17setlocal suffixesadd=.gleam
18let b:undo_ftplugin = "setlocal com< cms< sua<"
19
20if 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<"
28endif
29
30if !exists('current_compiler')
31  compiler gleam_build
32  let b:undo_ftplugin ..= "| compiler make"
33endif
34
35" vim: sw=2 sts=2 et