blob: 70958c70fc8209274948d1cee8066086039c2bb5 [file] [log] [blame]
Trilowy6e918532024-10-13 19:08:30 +02001" Vim filetype plugin file
Kirill Morozov3cbd7f12025-04-13 17:58:32 +02002" Language: Gleam
3" Maintainer: Kirill Morozov <kirill@robotix.pro>
4" Previous Maintainer: Trilowy (https://github.com/trilowy)
Doug Kearns40daa132025-04-16 18:29:15 +02005" Last Change: 2025 Apr 16
Trilowy6e918532024-10-13 19:08:30 +02006
7if exists('b:did_ftplugin')
8 finish
9endif
10let b:did_ftplugin = 1
11
12setlocal comments=://,:///,:////
13setlocal commentstring=//\ %s
Kirill Morozov3cbd7f12025-04-13 17:58:32 +020014setlocal formatprg=gleam\ format\ --stdin
Trilowy6e918532024-10-13 19:08:30 +020015
Doug Kearns40daa132025-04-16 18:29:15 +020016let b:undo_ftplugin = "setlocal com< cms< fp<"
17
18if get(g:, "gleam_recommended_style", 1)
19 setlocal expandtab
20 setlocal shiftwidth=2
21 setlocal softtabstop=2
22 let b:undo_ftplugin ..= " | setlocal et< sw< sts<"
23endif
Trilowy6e918532024-10-13 19:08:30 +020024
25" vim: sw=2 sts=2 et