From d5f5b6e113b950fc2346d3bde36e49861a79e77c Mon Sep 17 00:00:00 2001 From: Antoine U Date: Tue, 7 Jan 2025 17:00:15 +0100 Subject: [PATCH] feat(format): changes comment to be like other one --- lua/lazyvim/config/options.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/lazyvim/config/options.lua b/lua/lazyvim/config/options.lua index 7cafbbc0..5ae63ae2 100644 --- a/lua/lazyvim/config/options.lua +++ b/lua/lazyvim/config/options.lua @@ -4,10 +4,12 @@ vim.g.maplocalleader = "\\" -- LazyVim auto format vim.g.autoformat = true --- LazyVim auto format mode (file | changes) +-- LazyVim auto format mode +-- Can be one of: file, changes -- if set to changes only format actual changes based on git hunks -- otherwise format all the file vim.g.formatmode = "file" + --- LazyVim auto format changes only mode will be ignored --- for these filetypes and fallback to file vim.g.format_range_exclude_ft = { "lua" }