feat(options): new option to disable deprecation warnings. warnings will be hidden bydefault
This commit is contained in:
@ -275,6 +275,10 @@ function M.init()
|
|||||||
-- after installing missing plugins
|
-- after installing missing plugins
|
||||||
M.load("options")
|
M.load("options")
|
||||||
|
|
||||||
|
if vim.g.deprecation_warnings == false then
|
||||||
|
vim.deprecate = function() end
|
||||||
|
end
|
||||||
|
|
||||||
LazyVim.plugin.setup()
|
LazyVim.plugin.setup()
|
||||||
M.json.load()
|
M.json.load()
|
||||||
end
|
end
|
||||||
|
@ -25,6 +25,9 @@ vim.g.lazygit_config = true
|
|||||||
-- * powershell
|
-- * powershell
|
||||||
-- LazyVim.terminal.setup("pwsh")
|
-- LazyVim.terminal.setup("pwsh")
|
||||||
|
|
||||||
|
-- Hide deprecation warnings
|
||||||
|
vim.g.deprecation_warnings = false
|
||||||
|
|
||||||
local opt = vim.opt
|
local opt = vim.opt
|
||||||
|
|
||||||
opt.autowrite = true -- Enable auto write
|
opt.autowrite = true -- Enable auto write
|
||||||
|
Reference in New Issue
Block a user