diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-11 20:21:03 +0200 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-11 21:19:10 +0200 |
| commit | 29cf89ff5b26dd7443b5fcd5d9bd6f49e46b7b15 (patch) | |
| tree | 793087f29e2abafdd4b84b9b522d07a5c14f101d /.config/nvim/plugin/50-format.lua | |
| parent | 8033c39d0a8ecba3ef3d9a5628c213421283cce6 (diff) | |
| download | dotfiles-29cf89ff5b26dd7443b5fcd5d9bd6f49e46b7b15.tar.gz dotfiles-29cf89ff5b26dd7443b5fcd5d9bd6f49e46b7b15.zip | |
docs(nvim): edit comments
Diffstat (limited to '.config/nvim/plugin/50-format.lua')
| -rw-r--r-- | .config/nvim/plugin/50-format.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.config/nvim/plugin/50-format.lua b/.config/nvim/plugin/50-format.lua index 46a245c..b471e1b 100644 --- a/.config/nvim/plugin/50-format.lua +++ b/.config/nvim/plugin/50-format.lua @@ -1,10 +1,11 @@ -- -- 50-format.lua -- --- Specifies the formatters to use for different file types and sets up a global autocommand to trigger them. +-- * Specifies the formatters to use for different file types. +-- * Sets up an autocommand to format on 'BufWritePre'. -- -- User commands: --- FormatToggle: toggle formatting on save on/off for the current buffer +-- FormatToggle: toggle formatting on write for the current buffer local function toggle_format() vim.b.format = not vim.b.format |
