changeset 35481:d139d2462ea0

runtime(gomod): add gomod filetype plugin Commit: https://github.com/vim/vim/commit/6ccf6da7a2a7a0b9d1e23a905b091d762e911609 Author: yu-yk <yukkuen.yu@linktivity.co.jp> Date: Thu Jun 20 22:08:19 2024 +0200 runtime(gomod): add gomod filetype plugin closes: https://github.com/vim/vim/issues/15060 Signed-off-by: yu-yk <yukkuen.yu@linktivity.co.jp> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Thu, 20 Jun 2024 22:15:06 +0200
parents 68c1d18c80ea
children 5d823e880ed5
files .github/MAINTAINERS runtime/ftplugin/gomod.vim
diffstat 2 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.github/MAINTAINERS
+++ b/.github/MAINTAINERS
@@ -152,6 +152,7 @@ runtime/ftplugin/gitsendemail.vim	@tpope
 runtime/ftplugin/graphql.vim	@ribru17
 runtime/ftplugin/gyp.vim		@ObserverOfTime
 runtime/ftplugin/go.vim			@dbarnett
+runtime/ftplugin/gomod.vim		@yu-yk
 runtime/ftplugin/gprof.vim		@dpelle
 runtime/ftplugin/haml.vim		@tpope
 runtime/ftplugin/hare.vim		@selenebun
new file mode 100644
--- /dev/null
+++ b/runtime/ftplugin/gomod.vim
@@ -0,0 +1,14 @@
+" Vim filetype plugin file
+" Language:    go module file
+" Maintainer:  YU YUK KUEN <yukkuen.yu719@gmail.com>
+" Last Change: 2024-06-21
+
+if exists('b:did_ftplugin')
+  finish
+endif
+let b:did_ftplugin = 1
+
+setlocal formatoptions-=t formatoptions-=c
+setlocal commentstring=//\ %s
+
+let b:undo_ftplugin = 'setl fo< cms<'