feat(options): new option to disable deprecation warnings. warnings will be hidden bydefault

This commit is contained in:
Folke Lemaitre
2024-05-17 09:19:22 +02:00
parent cc99b219de
commit f8de965d3e
2 changed files with 7 additions and 0 deletions

View File

@ -275,6 +275,10 @@ function M.init()
-- after installing missing plugins
M.load("options")
if vim.g.deprecation_warnings == false then
vim.deprecate = function() end
end
LazyVim.plugin.setup()
M.json.load()
end

View File

@ -25,6 +25,9 @@ vim.g.lazygit_config = true
-- * powershell
-- LazyVim.terminal.setup("pwsh")
-- Hide deprecation warnings
vim.g.deprecation_warnings = false
local opt = vim.opt
opt.autowrite = true -- Enable auto write