HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/Program Files/Git/usr/share/vim/vim91/ftplugin/gleam.vim
" Vim filetype plugin file
" Language:            Gleam
" Maintainer:          Kirill Morozov <[email protected]>
" Previous Maintainer: Trilowy (https://github.com/trilowy)
" Based On:            https://github.com/gleam-lang/gleam.vim
" Last Change:         2025 Apr 21

if exists('b:did_ftplugin')
  finish
endif
let b:did_ftplugin = 1

setlocal comments=:////,:///,://
setlocal commentstring=//\ %s
setlocal formatprg=gleam\ format\ --stdin
setlocal suffixesadd=.gleam
let b:undo_ftplugin = "setlocal com< cms< fp< sua<"

if get(g:, "gleam_recommended_style", 1)
  setlocal expandtab
  setlocal shiftwidth=2
  setlocal smartindent
  setlocal softtabstop=2
  setlocal tabstop=2
  let b:undo_ftplugin ..= " | setlocal et< sw< si< sts< ts<"
endif

if !exists('current_compiler')
  compiler gleam_build
  let b:undo_ftplugin ..= "| compiler make"
endif

" vim: sw=2 sts=2 et