Commit: runtime(gleam): add ftplugin for gleam files

4 views
Skip to first unread message

Christian Brabandt

unread,
Oct 13, 2024, 1:15:12 PM10/13/24
to vim...@googlegroups.com
runtime(gleam): add ftplugin for gleam files

Commit: https://github.com/vim/vim/commit/6e918538b117c8c0b87a3d30300e8bbd073d652c
Author: Trilowy <49493635...@users.noreply.github.com>
Date: Sun Oct 13 19:08:30 2024 +0200

runtime(gleam): add ftplugin for gleam files

fixes: https://github.com/vim/vim/issues/15864
closes: https://github.com/vim/vim/issues/15866

Signed-off-by: Trilowy <49493635...@users.noreply.github.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/.github/MAINTAINERS b/.github/MAINTAINERS
index d352fdb6b..e4440a40e 100644
--- a/.github/MAINTAINERS
+++ b/.github/MAINTAINERS
@@ -163,6 +163,7 @@ runtime/ftplugin/gitconfig.vim @tpope
runtime/ftplugin/gitignore.vim @ObserverOfTime
runtime/ftplugin/gitrebase.vim @tpope
runtime/ftplugin/gitsendemail.vim @tpope
+runtime/ftplugin/gleam.vim @trilowy
runtime/ftplugin/go.vim @dbarnett
runtime/ftplugin/goaccess.vim @meonkeys
runtime/ftplugin/gomod.vim @yu-yk
diff --git a/runtime/ftplugin/gleam.vim b/runtime/ftplugin/gleam.vim
new file mode 100644
index 000000000..9ed607c4b
--- /dev/null
+++ b/runtime/ftplugin/gleam.vim
@@ -0,0 +1,16 @@
+" Vim filetype plugin file
+" Language: Gleam
+" Maintainer: Trilowy (https://github.com/trilowy)
+" Last Change: 2024 Oct 13
+
+if exists('b:did_ftplugin')
+ finish
+endif
+let b:did_ftplugin = 1
+
+setlocal comments=://,:///,:////
+setlocal commentstring=//\ %s
+
+let b:undo_ftplugin = "setlocal comments< commentstring<"
+
+" vim: sw=2 sts=2 et
Reply all
Reply to author
Forward
0 new messages