Closed
Description
Problem
By default, nvim's Zig ftplugin will format zig files on save:
neovim/runtime/ftplugin/zig.vim
Line 61 in 666911b
This is very confusing, since this behavior is not documented anywhere, and users expect nvim not to format anything unless they configure it to do so.
Steps to reproduce
Have zig
installed
nvim --clean test.zig
pub const Test= enum { Foo,
Bar};
Save the file and it will be automatically formatted
Expected behavior
Nvim should not do any automatic formatting by default which requires an undocumented global variable to disable.
At least the default value should be changed to 0
to disable this setting by default.
Neovim version (nvim -v)
NVIM v0.11.0-dev+18-g63e3a63d2
Vim (not Nvim) behaves the same?
Yes, vim 9.1
Operating system/version
Fedora Silverblue 40
Terminal name/version
Wezterm
$TERM environment variable
xterm-256color
Installation
Occurs with any installation method