diff options
| author | Phạm Bình An <111893501+brianhuster@users.noreply.github.com> | 2025-06-06 06:47:55 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-06 07:47:55 +0800 |
| commit | 4e71d3bfab3d21059bb3492c447a383e91931541 (patch) | |
| tree | f7cfdcf43a2a5ff3f61a20a79f53d2cff1d3b8a4 /runtime/lua/vim/_editor.lua | |
| parent | a9f544b712bd360502a236e6bf9d921cbd0ac3b1 (diff) | |
| download | rneovim-4e71d3bfab3d21059bb3492c447a383e91931541.tar.gz rneovim-4e71d3bfab3d21059bb3492c447a383e91931541.tar.bz2 rneovim-4e71d3bfab3d21059bb3492c447a383e91931541.zip | |
vim-patch:eb59129: runtime(typescript): remove Fixedgq() function from indent script (#34334)
Problem:
1. The `Fixedgq()` function is broken (see vim/vim#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 vim/vim#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: vim/vim#17412
closes: vim/vim#17452
https://github.com/vim/vim/commit/eb59129d2c06fd6627f537fce4fb8660cc8d0cda
Diffstat (limited to 'runtime/lua/vim/_editor.lua')
0 files changed, 0 insertions, 0 deletions