refactor(plugins)!: plugins now use lazy.nvim's new opts property to make it far easier to override options

This commit is contained in:
Folke Lemaitre 2023-01-08 15:05:34 +01:00
parent 8667b3d54e
commit 2135bc144c
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
8 changed files with 140 additions and 95 deletions

View file

@ -75,6 +75,7 @@ function M.telescope(builtin, opts)
end
end
-- FIXME: create a togglable termiminal
-- Opens a floating terminal (interactive by default)
---@param cmd? string[]|string
---@param opts? LazyCmdOptions|{interactive?:boolean}
@ -122,4 +123,12 @@ function M.toggle_diagnostics()
end
end
function M.deprecate(old, new)
vim.notify(
("`%s` is deprecated. Please use `%s` instead"):format(old, new),
vim.log.levels.WARN,
{ title = "LazyVim" }
)
end
return M