chore: add warning message

This commit is contained in:
JuanZoran 2023-04-07 19:57:52 +08:00
parent b12bef50f9
commit 36865cc17d
2 changed files with 9 additions and 0 deletions

View File

@ -6,6 +6,7 @@
return { return {
---@type string the directory for database file and password file ---@type string the directory for database file and password file
dir = require 'Trans'.plugin_dir, dir = require 'Trans'.plugin_dir,
warning = true,
debug = true, debug = true,
---@type 'default' | 'dracula' | 'tokyonight' global Trans theme [see lua/Trans/style/theme.lua] ---@type 'default' | 'dracula' | 'tokyonight' global Trans theme [see lua/Trans/style/theme.lua]
theme = 'default', -- default | tokyonight | dracula theme = 'default', -- default | tokyonight | dracula

View File

@ -52,4 +52,12 @@ return function(opts)
set_strategy_opts(conf) set_strategy_opts(conf)
define_highlights(conf) define_highlights(conf)
if Trans.conf.warning then
vim.notify([[
v2已经发布, :
https://github.com/JuanZoran/Trans.nvim
使(v2)
]], vim.log.levels.WARN)
end
end end