From 6ccf6da7a2a7a0b9d1e23a905b091d762e911609 Mon Sep 17 00:00:00 2001 From: yu-yk Date: Thu, 20 Jun 2024 22:08:19 +0200 Subject: runtime(gomod): add gomod filetype plugin closes: #15060 Signed-off-by: yu-yk Signed-off-by: Christian Brabandt --- .github/MAINTAINERS | 1 + runtime/ftplugin/gomod.vim | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 runtime/ftplugin/gomod.vim diff --git a/.github/MAINTAINERS b/.github/MAINTAINERS index 5ebe93a58c..19574990f2 100644 --- 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 diff --git a/runtime/ftplugin/gomod.vim b/runtime/ftplugin/gomod.vim new file mode 100644 index 0000000000..0d5d9ba9c2 --- /dev/null +++ b/runtime/ftplugin/gomod.vim @@ -0,0 +1,14 @@ +" Vim filetype plugin file +" Language: go module file +" Maintainer: YU YUK KUEN +" 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<' -- cgit v1.2.3