runtime(go): add recommended indent options to ftplugin

related: #15264

Signed-off-by: markmacode <code@mamo.aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
markmacode
2024-07-16 21:20:34 +02:00
committed by Christian Brabandt
parent 6a54dcbbd6
commit 3e07d5aef1
2 changed files with 18 additions and 1 deletions

View File

@ -1,4 +1,4 @@
*filetype.txt* For Vim version 9.1. Last change: 2024 Jul 15
*filetype.txt* For Vim version 9.1. Last change: 2024 Jul 16
VIM REFERENCE MANUAL by Bram Moolenaar
@ -641,6 +641,17 @@ in the preview window. It is equivalent to calling "git diff --cached" plus
any arguments given to the command.
GO *ft-go-plugin*
By default the following options are set, based on Golang official docs: >
setlocal noexpandtab softtabstop=0 shiftwidth=0
To disable this behavior, set the following variable in your vimrc: >
let g:go_recommended_style = 0
GPROF *ft-gprof-plugin*
The gprof filetype plugin defines a mapping <C-]> to jump from a function