2024-10-13 19:08:30 +02:00
|
|
|
" Vim filetype plugin file
|
2025-04-13 17:58:32 +02:00
|
|
|
" Language: Gleam
|
|
|
|
" Maintainer: Kirill Morozov <kirill@robotix.pro>
|
|
|
|
" Previous Maintainer: Trilowy (https://github.com/trilowy)
|
|
|
|
" Last Change: 2025-04-12
|
2024-10-13 19:08:30 +02:00
|
|
|
|
|
|
|
if exists('b:did_ftplugin')
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
let b:did_ftplugin = 1
|
|
|
|
|
|
|
|
setlocal comments=://,:///,:////
|
|
|
|
setlocal commentstring=//\ %s
|
2025-04-13 17:58:32 +02:00
|
|
|
setlocal expandtab
|
|
|
|
setlocal formatprg=gleam\ format\ --stdin
|
|
|
|
setlocal shiftwidth=2
|
|
|
|
setlocal softtabstop=2
|
2024-10-13 19:08:30 +02:00
|
|
|
|
2025-04-13 17:58:32 +02:00
|
|
|
let b:undo_ftplugin = "setlocal com< cms< fp< et< sw< sts<"
|
2024-10-13 19:08:30 +02:00
|
|
|
|
|
|
|
" vim: sw=2 sts=2 et
|