diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2026-02-14 06:54:46 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2026-02-14 07:59:51 +0800 |
| commit | d49fe235f70c91b60babe9d75602f5119c151cba (patch) | |
| tree | f8f645ff3ded7debb66e8fc405db51ac882511a4 /runtime/ftplugin/gleam.vim | |
| parent | 3432d87ce0f72da62bfd65e6145fc1c4974e22b1 (diff) | |
vim-patch:dcc4175: runtime(go,gleam): Remove 'formatprg' from ftplugins
Effective use of 'formatprg' requires both an understanding of the
specific capabilities of the formatting tool and Vim's formatting
commands. This is overly burdensome for some users.
Rather than address each complaint on a filetype by filetype basis,
remove 'formatprg' settings from all ftplugins.
It is expected that formatter plugins will be available in the near
future as a better solution. See vim/vim#17145 (Add "formatter" feature using
"compiler" as a template).
Note: 'formatprg' will be removed from older ftplugins after the release
of Vim 9.2. The setting was added to the go and gleam ftplugins during
the current development cycle and have not been included in a Vim
release.
See: vim/vim#18650 (rust.vim: stop setting formatprg to rustfmt)
closes: vim/vim#19108
https://github.com/vim/vim/commit/dcc41752843428142623b527433c551991ea7a31
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
Diffstat (limited to 'runtime/ftplugin/gleam.vim')
| -rw-r--r-- | runtime/ftplugin/gleam.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/ftplugin/gleam.vim b/runtime/ftplugin/gleam.vim index 3ea68fa0a7..fb3ae8bb34 100644 --- a/runtime/ftplugin/gleam.vim +++ b/runtime/ftplugin/gleam.vim @@ -4,6 +4,7 @@ " Previous Maintainer: Trilowy (https://github.com/trilowy) " Based On: https://github.com/gleam-lang/gleam.vim " Last Change: 2025 Apr 21 +" 2026 Feb 13 by Vim Project (remove 'formatprg' #19108) if exists('b:did_ftplugin') finish @@ -12,9 +13,8 @@ let b:did_ftplugin = 1 setlocal comments=:////,:///,:// setlocal commentstring=//\ %s -setlocal formatprg=gleam\ format\ --stdin setlocal suffixesadd=.gleam -let b:undo_ftplugin = "setlocal com< cms< fp< sua<" +let b:undo_ftplugin = "setlocal com< cms< sua<" if get(g:, "gleam_recommended_style", 1) setlocal expandtab |
