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" }