mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 11:24:14 +00:00
Rename force_autocrlf to override_autocrlf for clarity
This commit is contained in:
parent
a80eafb5ac
commit
205f5af1d4
2 changed files with 6 additions and 3 deletions
|
@ -32,7 +32,7 @@ M.defaults = {
|
|||
-- process will lead to files with CRLF endings. Vi / vim / neovim cannot handle this.
|
||||
-- When true, Lazy will force git to clone with core.autocrlf=false. When false, Lazy will
|
||||
-- not touch the core.autocrlf setting.
|
||||
force_autocrlf = true,
|
||||
override_autocrlf = true,
|
||||
},
|
||||
dev = {
|
||||
-- directory where you store your local plugin projects
|
||||
|
|
|
@ -67,12 +67,15 @@ M.clone = {
|
|||
self.plugin.url,
|
||||
}
|
||||
|
||||
vim.print("force_autocrlf = " .. tostring(Config.options.git.force_autocrlf))
|
||||
|
||||
if Config.options.git.filter then
|
||||
args[#args + 1] = "--filter=blob:none"
|
||||
end
|
||||
|
||||
if Config.options.git.override_autocrlf == true then
|
||||
args[#args + 1] = "-c"
|
||||
args[#args + 1] = "core.autocrlf=false"
|
||||
end
|
||||
|
||||
if self.plugin.submodules ~= false then
|
||||
args[#args + 1] = "--recurse-submodules"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue