Mercurial > vim
changeset 36300:c25bd3694f79 draft
runtime(gleam): add ftplugin for gleam files
Commit: https://github.com/vim/vim/commit/6e918538b117c8c0b87a3d30300e8bbd073d652c
Author: Trilowy <49493635+trilowy@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+trilowy@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 13 Oct 2024 19:15:05 +0200 |
parents | ed2214e79f4e |
children | fc1aeadd8e5c |
files | .github/MAINTAINERS runtime/ftplugin/gleam.vim |
diffstat | 2 files changed, 17 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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
new file mode 100644 --- /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