]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(typescript): remove Fixedgq() function from indent script
authorPhạm Bình An <phambinhanctb2004@gmail.com>
Thu, 5 Jun 2025 19:21:35 +0000 (21:21 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 5 Jun 2025 19:21:35 +0000 (21:21 +0200)
commiteb59129d2c06fd6627f537fce4fb8660cc8d0cda
treea01b17f60041639e1246f09e82cabe8bf27681e4
parent002548b81eb0073904ae082c2846e0a7162807e6
runtime(typescript): remove Fixedgq() function from indent script

Problem:
1. The `Fixedgq()` function is broken (see #17412)
2. The `'formatexpr'` for Typescript is not documented, which causes
   confusion to users when they try to set `'formatprg'`, since
   `'formatexpr'` always takes precedence over `'formatprg'`. See also
   https://github.com/HerringtonDarkholme/yats.vim/issues/209
3. Typescript already has a very good and popular formatter called
   `prettier`, that can be easily integrated to Vim via `'formatprg'`
   (see #16989). I don't think there are any good reasons to reinvent a
   half-baked version in Vim.

Solution:  Remove the Fixedgq() 'formatexpr' function.

fixes: #17412
closes: #17452

Signed-off-by: Phạm Bình An <phambinhanctb2004@gmail.com>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/indent/typescript.vim