mirror of
https://github.com/neovim/neovim.git
synced 2026-05-05 13:35:02 +00:00
vim-patch:3e07d5a: runtime(go): add recommended indent options to ftplugin
related: vim/vim#15264
3e07d5aef1
Co-authored-by: markmacode <code@mamo.aleeas.com>
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
" Language: Go
|
||||
" Maintainer: David Barnett (https://github.com/google/vim-ft-go)
|
||||
" Last Change: 2014 Aug 16
|
||||
" 2024 Jul 16 by Vim Project (add recommended indent style)
|
||||
|
||||
if exists('b:did_ftplugin')
|
||||
finish
|
||||
@@ -15,4 +16,9 @@ setlocal commentstring=//\ %s
|
||||
|
||||
let b:undo_ftplugin = 'setl fo< com< cms<'
|
||||
|
||||
if get(g:, 'go_recommended_style', 1)
|
||||
setlocal noexpandtab softtabstop=0 shiftwidth=0
|
||||
let b:undo_ftplugin ..= ' | setl et< sts< sw<'
|
||||
endif
|
||||
|
||||
" vim: sw=2 sts=2 et
|
||||
|
||||
Reference in New Issue
Block a user