runtime(gleam): add ftplugin for gleam files
fixes: #15864
closes: #15866
Signed-off-by: Trilowy <49493635+trilowy@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/runtime/ftplugin/gleam.vim b/runtime/ftplugin/gleam.vim
new file mode 100644
index 0000000..9ed607c
--- /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