]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(gleam): add ftplugin for gleam files
authorTrilowy <49493635+trilowy@users.noreply.github.com>
Sun, 13 Oct 2024 17:08:30 +0000 (19:08 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 13 Oct 2024 17:08:30 +0000 (19:08 +0200)
fixes: #15864
closes: #15866

Signed-off-by: Trilowy <49493635+trilowy@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
.github/MAINTAINERS
runtime/ftplugin/gleam.vim [new file with mode: 0644]

index d352fdb6ba26fabe3d17798fed3aefc8fd9ccadb..e4440a40ef84f67c1ae7ada26b2440014a4dac80 100644 (file)
@@ -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 (file)
index 0000000..9ed607c
--- /dev/null
@@ -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